Merge pull request 'Allow changing what taxonomy group gets listed at the bottom of a given section page by setting `extra.taxonomy_group` in its frontmatter' (#34) from Karcsesz/zola-bearblog:main into main Reviewed-on: https://codeberg.org/alanpearce/zola-bearblog/pulls/34
1 file changed, 2 insertions(+), 1 deletion(-)
changed files
M templates/section.html → templates/section.html
@@ -25,7 +25,8 @@ <li>{{ trans(key="no_posts", lang=lang) }}</li> {%- endfor -%} </ul> <div class="tags"> - {%- set tags = get_taxonomy(kind="tags", lang=lang) %} + {%- set taxonomy_group = section.extra.taxonomy_group | default(value="tags") %} + {%- set tags = get_taxonomy(kind=taxonomy_group, lang=lang) %} {%- for post in tags.items %} <a href="{{ post.permalink }}">#{{ post.name }}</a> {%- endfor %}