How to configure the slug value to use the post/page folder name instead of the title from the frontmatter? #868
-
Hi @CaiJimmy Your theme appears to use the I'd like Hugo to use the folder name of the posts and pages instead. Is that possible? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 think that's the default behaviour if you remove the permalink configuration. Please give it a try and see if it works. |
Beta Was this translation helpful? Give feedback.
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 think that's the default behaviour if you remove the permalink configuration. Please give it a try and see if it works.