Skip to content
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

Add support for slug #6422

Open
dragonstyle opened this issue Aug 3, 2023 Discussed in #1408 · 4 comments
Open

Add support for slug #6422

dragonstyle opened this issue Aug 3, 2023 Discussed in #1408 · 4 comments
Labels
enhancement New feature or request websites Issues creating websites
Milestone

Comments

@dragonstyle
Copy link
Collaborator

Discussed in #1408

Originally posted by sciwonder July 15, 2022
I don't know if this is a feature currently (I searched but couldn't find any info on it), but is there a way to set up preferences for permalinks to things like blog posts in _metadata.yml in the posts folder? In my previous blog setup (using Hugo and Wowchemy), I had the following in config.yaml, for example:

permalinks:
  event: '/talk/:slug/'
  authors: '/author/:slug/'
  tags: '/tag/:slug/'
  categories: '/category/:slug/'
  publication_types: '/publication-type/:slug/'
  post: '/post/:year/:month/:day/:slug'

For blog posts, this translated to a hyperlink that started off with the year, followed by month, followed by day, and then the post's slug, which was specified within the post with slug: in the YAML header (e.g., //blog-name.netlify.app/post/2022/07/16/slug-for-blog-post/). Others might prefer a smaller hyperlink (e.g., '/post/:year/:slug') or even just the slug. I think setting this up in _metadata.yml might provide greater consistency. (Apologies if this feature already exists and I've just missed it in the documentation!)

@dragonstyle dragonstyle added enhancement New feature or request websites Issues creating websites labels Aug 3, 2023
@dragonstyle dragonstyle added this to the v1.5 milestone Aug 3, 2023
@dragonstyle dragonstyle self-assigned this Aug 3, 2023
@cscheid
Copy link
Collaborator

cscheid commented Aug 11, 2023

Just to clarify. I'd like this work to depend on our execution planner work (which is slated for 1.5), so that when we do add slugs, we have more confidence that we know exactly the names of the aliases, what they're referring to, and where the files might be. Slugs interact in a fragile way with things like output-file and output-dir, so we need to have a good foundation..

@danilotpnta
Copy link

I am also looking for an alternative for this. Thanks for raising the issue and thanks @cscheid for the amazing job with Quarto

@dragonstyle dragonstyle modified the milestones: v1.5, v1.6 Jan 17, 2024
@dragonstyle dragonstyle removed their assignment Feb 19, 2024
@felipecrp
Copy link

This feature would be awesome for users trying to migrate a previous blog to quarto

@cscheid cscheid modified the milestones: v1.6, Future Aug 20, 2024
@cscheid
Copy link
Collaborator

cscheid commented Aug 20, 2024

This feature is blocked by #6518, and so won't happen in the near term.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request websites Issues creating websites
Projects
None yet
Development

No branches or pull requests

4 participants