feat: add taxonomy list & single term templates (#239)

This commit is contained in:
Óscar 2024-01-01 17:02:03 +01:00 committed by GitHub
parent a1a258708e
commit 39fc4ece61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{% extends "index.html" %}
{% block main_content %}
{{ macros_page_header::page_header(title=term.name) }}
{% set max = section.extra.max_posts | default(value=999999) %}
{{ macros_list_posts::list_posts(posts=term.pages, max=max) }}
<ul class="pagination">
<li class="page-item">
<a class="all-tags" href="{{ get_url(path="tags", lang=lang) }}/">&nbsp;{{- macros_translate::translate(key=taxonomy.name, default=taxonomy.name, language_strings=language_strings) -}}</a>
</li>
</ul>
{% endblock main_content %}