8000 Shorter URLs + split "posts" into news+blog by ozkriff · Pull Request #586 · rust-gamedev/rust-gamedev.github.io · GitHub
[go: up one dir, main page]

Skip to content

Shorter URLs + split "posts" into news+blog #586

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

Merged
merged 2 commits into from
Apr 13, 2021

Conversation

ozkriff
Copy link
Member
@ozkriff ozkriff commented Apr 12, 2021

The gamedev.rs domain was recently transferred to me and I'm hoping to migrate https://rust-gamedev.github.io/ there soon (#233 "Custom Domain").

In preparation to this, I also want to alter our URL scheme (mostly, because I want shorter URLs that would work nicely with Twitter, various chat apps, etc) while we're messing with the domain (and google cache) anyway.

The new scheme looks like "/<short category name>/<bare index (if possible)>":

  • gamedev.rs/news/019
  • gamedev.rs/blog/survey-01
  • etc.

The new section structure is extensible: for example, I hope to integrate the https://rustgamedev.com podcast one day and URLs might look like gamedev.rs/cast/001

Live preview (for 0eaa2e9): https://gamedev-rs.netlify.app

I've tried to add compatibility aliases for URLs (https://gamedev-rs.netlify.app/posts/newsletter-020 -> https://gamedev-rs.netlify.app/news/020, etc), hope I haven't missed anything important in this regard.

Copy link
Collaborator
@17cupsofcoffee 17cupsofcoffee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This diff looks extremely intimidating, but if you filter out everything except .md/.html changes, it's not too scary 😛

The new URLs look okay to me, and I've tried the redirects on your Netlify version and they all seem to work. One minor comment about the template, but that's it.

Also, remove unneded conditions
@ozkriff
Copy link
Member Author
ozkriff commented Apr 12, 2021

This diff looks extremely intimidating, but if you filter out everything except .md/.html changes, it's not too scary stuck_out_tongue

Yeah, most of the changes are simple file renames

@ozkriff
Copy link
Member Author
ozkriff commented Apr 12, 2021

⏲️ Merging tomorrow (and starting the actual migration to gamedev.rs) if there're no objections

@ozkriff ozkriff merged commit 02fc2c7 into rust-gamedev:source Apr 13, 2021
@ozkriff ozkriff deleted the short-urls branch April 13, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0