-
Hello everyone, I'd like to change the view mode of some taxonomy pages. I'd like that this page (reached when clicking on "See all events" under the "Attended" section in the home page, if the items do not fit the max entry number): Would be displayed like the event page, with only the correct filtered items: I've been able to change the title, with a taxonomy file in ---
title: Attended events
cms_exclude: true
# View.
# 1 = List
# 2 = Compact
# 3 = Card
view: 2
# Optional header image (relative to `static/media/` folder).
header:
caption: ""
image: ""
--- But the view parameter does not seem to have effect. How can I render the entries nicely? I've not been able to find anything in the docs. Thanks! edit. Alternatively, I'd like to create a new page type (i.e. a folder in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The template lookup order is listed here: https://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-term-pages The file that controls the layout of both tag list pages (like the one you linked to) and pages for single tags (like this one https://luca.moschella.dev/tag/data-mining/). In wowchemy this file is Or if you just want to make a new template for tags, then add a template to |
Beta Was this translation helpful? Give feedback.
-
Thanks!!! I appreciate this a lot. Just a typo for future reference, the |
Beta Was this translation helpful? Give feedback.
The template lookup order is listed here: https://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-term-pages
The file that controls the layout of both tag list pages (like the one you linked to) and pages for single tags (like this one https://luca.moschella.dev/tag/data-mining/).
In wowchemy this file is
wowchemy/layout/_default/list.html
. You can override it by adding your own file to./layout/_default/list.html
.Or if you just want to make a new template for tags, then add a template to
./layouts/taxonomy/term.html
. You can use the default list template as a starting point. Theevent
layout is defined inwowchemy/layouts/section/event.html
.