all repos — zola-bearblog @ e8413a8a62461b82c6212e482ae60fd0bd27471c

Port of bear blog theme to zola

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

Alin
commit

e8413a8a62461b82c6212e482ae60fd0bd27471c

parent

4b7e01f914a26f3f45dba77b951dd34a62eb0a6b

1 file changed, 2 insertions(+), 1 deletion(-)

changed files
M templates/section.htmltemplates/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>&nbsp; {%- endfor %}