Put taxonomy list page into a subfolder like /blog/tags

I have a Hugo page that is basically splitter between main content and blog. So everything for the blog is under /blog. I want to introduce a tags taxonomy and list all the tags under /blog/tags. Also the term pages should look like /blog/tags/:title.

I am able to adjust the term page url but not the list tag list url. I really become desperate…

part of config.toml

	tag = "tags"

	tags = "/blog/tags/:title/"

So for tags like animals I get /blog/tags/animals. Fine!
But how can I also adjust the /tags to /blog/tags?

I tried putting a _index.md into content/tags/ or content/blog/tags and setting url: /blog/tags in the front matter. Does not work.

Please help! Thank you!

Yes, it does. Try it.

git clone --single-branch -b hugo-forum-topic-44116 https://github.com/jmooring/hugo-testing hugo-forum-topic-44116
cd hugo-forum-topic-44116
hugo server

Oh yeah, looks like I had an issue in the list.html layout that led to compile errors. Thanks a lot @jmooring !! So after removing that it works.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.