💄 style: redesign tag pages

This commit is contained in:
welpo
2023-03-05 19:52:51 +01:00
parent 7605ccaf54
commit 8ac1894a66
5 changed files with 36 additions and 32 deletions

View File

@@ -1,16 +0,0 @@
{% macro list_title(pages, tag_name=false) %}
{% if tag_name %}
<div class="title-container section-title">Tag {{ term.name }}</div>
{% else %}
<h1 class="page-title">All articles</h1>
{% endif %}
<ul class="posts">
{% for page in pages %}
<li class="post">
<div><a href="{{ page.permalink }}">{{ page.title }}</a></div>
<span class="meta">{{ macros_format_date::format_date(date=page.date) }}</span>
</li>
{% endfor %}
</ul>
{% endmacro list_title %}

View File

@@ -16,7 +16,7 @@
{% set suffix = page.title %}
{% elif term.name %}
{# Individual tags. #}
{% set suffix = term.name ~ " tag" %}
{% set suffix = term.name %}
{% elif taxonomy.name %}
{# List of tags. #}
{% set suffix = taxonomy.name | capitalize %}