I’m working with a Hugo site and have encountered an issue displaying custom taxonomy terms. I have a custom content folder located at /content/courses/ and have added a custom taxonomy called subjects in my Hugo config.toml file.
Here is the functionality I need:
A taxonomy term listing page that displays each term within the subjects taxonomy along with the count of associated posts.
A way to click on each term that then navigates to a page listing all posts associated with that specific term.
Despite extensive troubleshooting and reviewing AI tools, YouTube tutorials, and community posts, I haven’t been able to resolve this.
Could you provide guidance on implementing this feature?
Thank you in advance for any support or resources you can offer!
Both of thoses are rendered by themes/test/layouts/_default/list.html.
Also, I’m not sure why you are adding content under theme/test/content. Content typically belongs in the content directory in the root of your project.
I suspect this might be due to the fact that “hugo new theme <theme-name>” generates a theme with content in the theme folder. I understand this might be so that people installing a theme get ready-made content to generate the site.
If that is the case, then would it be possible to add a line to the output of the new theme command advising to move the content from the theme folder into the content directory of the project.