Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

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

Open
ryanmacklin opened this issue May 3, 2022 · 3 comments
Open

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

ryanmacklin opened this issue May 3, 2022 · 3 comments
Assignees
Labels
blog enhancement New feature or request

Comments

@ryanmacklin
Copy link
Contributor

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.

@ryanmacklin ryanmacklin added enhancement New feature or request blog labels May 3, 2022
@bwklein
Copy link
Member

bwklein commented May 3, 2022

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
Copy link
Contributor Author

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

@bwklein
Copy link
Member

bwklein commented May 3, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants