-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to Zola #1522
Comments
At this point, I see two big blockers for making the migration a no-op for the snapshot tests:
I'm thinking I could create two throwaway commits containing the normally-ignored |
I'm getting closer to finishing this, the site basically builds and deploys fine. A little more polishing is required The biggest sticking point was the URLs. Zola won't generate a page with a path I knew However this redirection absolutely does not work when using Zolas path = "yyyy/mm/dd/slug"
aliases = ["yyyy/mm/dd/slug.html"] This front matter would work in the sense that old links to That leaves us with two possibilities:
@Manishearth do you have an opinion on this? |
I generally have a slight preference for consistency but the I'm fine with either option, overall I think I have a slight slight preference for the latter one. We could also make all of them use the new URL scheme and hardcode some specific redirect pages for the old ones, potentially via an additional codegen step. |
Could you elaborate how that would work? I think Zolas |
This is what a generated redirect page using Zolas <!doctype html>
<meta charset="utf-8">
<link rel="canonical" href="https://blog.rust-lang.org/2015/06/25/Rust-1.1.html/">
<meta http-equiv="refresh" content="0; url=https://blog.rust-lang.org/2015/06/25/Rust-1.1.html/">
<title>Redirect</title>
<p><a href="https://blog.rust-lang.org/2015/06/25/Rust-1.1.html/">Click here</a> to be redirected.</p> |
Ok, I figured out a redirect template that preserves the section id with a little JavaScript. But Zola doesn't allow overriding this template. I opened an issues about it: getzola/zola#2847 |
We'd manually plop in HTML files that either use META redirects (assuming fragments still work with them) or JS based redirects with a META redirect fallback (if fragments do not work). |
Benefits:
Downsides:
date
andpath
), because zola doesn't support template strings for the path or something similar. (Maybe we can only havepath
in the front matter and extract the date from it in our scripts?)I think we should definitely do #1511 first, for maximum confidence in the transition. There is a good chance Zola will do some things differently. Ideally, we would incrementally change the output of our custom generator, until it matches the output of zola.
The text was updated successfully, but these errors were encountered: