Gaby
December 21, 2023, 8:20pm
1
Hello,
I am trying to figure out if there is a way to show all the posts in a specific category as a title links list rather than just all the full posts. Like if I click on a category tag within my full post, it takes me to a list of related posts (with the same tag). Hope this makes sense.
I thought there was a plugin for that, maybe I am making this up? Or that’s something that needs to be modified within the theme’s template?
The /categories/category_name pages use the template in layouts/_default/term.html. If you don’t want full posts but a list, you can edit that template.
Gaby
December 22, 2023, 3:05pm
4
I see. hm I am not sure how deep into the woods I am willing to go.
Thank you!
Same. I’m waiting on a theme to come out or for someone to make a plugin that does that because I’m not sure I wanna go that deep with it either.
pratik
December 24, 2023, 6:26pm
6
I don’t have a term.html
page. How do I find out which template my category pages use?
It’ll fall back on default/_layouts/list.html I believe. But I would make a term page.
This provides the look up order: Template lookup order | Hugo
Categories will fall under taxonomy
pages. The order it will look (until it finds one) is as follows:
layouts/categories/category.terms.html.html
layouts/categories/terms.html.html
layouts/categories/taxonomy.html.html
layouts/categories/list.html.html
layouts/categories/category.terms.html
layouts/categories/terms.html
layouts/categories/taxonomy.html
layouts/categories/list.html
layouts/category/category.terms.html.html
layouts/category/terms.html.html
layouts/category/taxonomy.html.html
layouts/category/list.html.html
layouts/category/category.terms.html
layouts/category/terms.html
layouts/category/taxonomy.html
layouts/category/list.html
layouts/taxonomy/category.terms.html.html
layouts/taxonomy/terms.html.html
layouts/taxonomy/taxonomy.html.html
layouts/taxonomy/list.html.html
layouts/taxonomy/category.terms.html
layouts/taxonomy/terms.html
layouts/taxonomy/taxonomy.html
layouts/taxonomy/list.html
layouts/_default/category.terms.html.html
layouts/_default/terms.html.html
layouts/_default/taxonomy.html.html
layouts/_default/list.html.html
layouts/_default/category.terms.html
layouts/_default/terms.html
layouts/_default/taxonomy.html
layouts/_default/list.html
1 Like