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

Support uglyURLs per section #4256

bep opened this Issue Jan 11, 2018 · 0 comments


None yet
1 participant

bep commented Jan 11, 2018

Right now you can switch a boolean flag either globally or per language. I have a project that needs ugly URLs for the blog, but "normal" URLs for the rest. You can set those URLs manually per post, but that gets ugly (pun intended) very fast, and even more so when you have multiple languages.

So, I suggest that the uglyURLs can contain both a boolean and be a set; i.e a set of (root) section names with uglyURLs turned on.


uglyURLs = true
  blog = true

@bep bep added the Enhancement label Jan 11, 2018

@bep bep added this to the v0.33 milestone Jan 11, 2018

@bep bep self-assigned this Jan 11, 2018

bep added a commit to bep/hugo that referenced this issue Jan 11, 2018

@bep bep closed this in #4262 Jan 12, 2018

bep added a commit that referenced this issue Jan 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment