thegooddocsproject / website-hugo

Hugo based website for the project.
Other
6 stars 22 forks source link

Adding year/month to post URLs to futureproof us #158

Open ryanmacklin opened 2 years ago

ryanmacklin commented 2 years ago

As I'm looking at the execution in gitpod of our first post. I'm struck with worrying about writing us into corner when it comes to future stubs over the life of the blog. What's the a) feasibility and b) reasonability of having it go: /blog/20xx/0Y/stub as the URL?

Related, do we have the capacity of assigning a stub that isn't autogenerated? I don't see that in the current demos, so I'm not sure what the YAML var is for that.

bwklein commented 2 years ago

I would rather not put year month in URL slugs. That data is already stored in the Front Matter.

/blog/slug is my preference.

ryanmacklin commented 2 years ago

Is the slug solely autogenerated, or can we supply a custom one in the header?

bwklein commented 2 years ago

It is autogenerated from the title. But you can change it to be anything you want after that.

https://frontmatter.codes/docs/commands#generate-slug-based-on-content-title