We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to change the URL?
For example, currently it is:
www.mywebsite.com/posts/category/sub-category/my-post
Is it possible to drop the categories and make it simply:
www.mywebsite.com/posts/my-post
?
Failing that, can I set up redirects? It would be a lot more complicated but it's better than nothing.
Thanks!
The text was updated successfully, but these errors were encountered:
I have the same issue with you dude. The URL is a bit long and complex. :-(
Sorry, something went wrong.
Oh, that was simpler than I thought. It's a Hugo thing, not a theme thing.
To config.yaml, add:
config.yaml
permalinks: page: /: ':section/:slugorfilename'
More detail: https://gohugo.io/content-management/urls/#permalinks
I suggest adding it to the template.
Interestingly, the long URL (with cats/sub-cats) still seems to work too.
thx that makes more sense. I will try that.
No branches or pull requests
Is it possible to change the URL?
For example, currently it is:
www.mywebsite.com/posts/category/sub-category/my-post
Is it possible to drop the categories and make it simply:
www.mywebsite.com/posts/my-post
?
Failing that, can I set up redirects? It would be a lot more complicated but it's better than nothing.
Thanks!
The text was updated successfully, but these errors were encountered: