Skip to content
Discussion options

You must be logged in to vote

Your theme appears to use the title from the frontmatter to generate the slug if the frontmatter doesn't declare the property slug.

That depends on your Hugo configuration, the theme cannot interfere with that aspect. If you are using the starter template, the permalink configuration is stored here: https://github.com/CaiJimmy/hugo-theme-stack-starter/blob/master/config/_default/permalinks.toml

I'd like Hugo to use the folder name of the posts and pages instead.

I think that's the default behaviour if you remove the permalink configuration. Please give it a try and see if it works.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JeremieLitzler
Comment options

Answer selected by JeremieLitzler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants