mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
💄 style: redesign tag pages
This commit is contained in:
parent
7605ccaf54
commit
8ac1894a66
5 changed files with 36 additions and 32 deletions
|
@ -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 %}
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue