-
Notifications
You must be signed in to change notification settings - Fork 292
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
Port Blog Backend To Zola #573
Conversation
I'm not sure if we should be changing the URL, even if it's done backwards compatibly. cc @steveklabnik ? Have we diffed the output of the old and new website? |
FWIW I'd also be okay with keeping at least some of current URL scheme. This was just the most compatible solution. The one problem I would see with keeping the current scheme is having to create a directory with date ( |
You should now be able to view the updated version at https://xampprocky.github.io/blog.rust-lang.org/ There's an inexplicable issue where the "Inside Rust" archive page has way more spacing than the main blog. I have to investigate it more. |
Yes so, the custom backend here was because I needed to hit a deadline, I generally support moving it to something less bespoke. I would prefer to not change URLs unless it's absolutely necessary. We have a lot of seo juice on the blog. |
Yeah, I think we should try to keep the URLs as is, such changes should not be made lightly |
A change would be required to switch to Zola, since Zola doesn't currently doesn't support that kind of scheme without being inconvenient for contributors. While I do think this port merits changes in the URL scheme, I want to write more motivation for that change. In the mean time I've filed a feature request on Zola for adding the transformation to see if the problem resolves itself. |
I'm going to close this PR for now, as I messed up the branch, and I want to write on the motivation before revisiting this PR. |
Rendered
This switches the current bespoke blog backend for Zola. This should provide us access with more features to build and customise the blog without having to build all of those features outselves. There's still a few things needed to be done before this ready to merge, but the main structure should be ready for review. The two main commits are "Make Zola Templates" and "Initial Zola Config", the rest is moving files around, changing frontmatter syntax.
For contributors of the blog there is one major change which is that new blog urls are now generated at
/<name>/
instead of/YYYY/MM/DD/<name>/
(Previous blog entries still work at on old URL). I made this trade off as it preserves the current two directory level structure we currently have. We could also perserve the/YYYY/MM/DD/<name>/
url formatting but change to a more nested directory layout.To Do
r? @pietroalbini || @Manishearth