diff options
| author | Mole Shang <135e2@135e2.dev> | 2023-03-27 00:12:47 +0800 | 
|---|---|---|
| committer | Mole Shang <135e2@135e2.dev> | 2023-04-16 21:51:16 +0800 | 
| commit | a117775fb5ab6f41f2fb96ea5f8b2a456084d91a (patch) | |
| tree | b397c7d2a6cc296a86eefec0b13f19b0d97fea01 /templates/taxonomy_single.html | |
| parent | 9ac91dbeffeb73aa4161c0ffb9801007de763e34 (diff) | |
| download | Seje2-a117775fb5ab6f41f2fb96ea5f8b2a456084d91a.tar.gz Seje2-a117775fb5ab6f41f2fb96ea5f8b2a456084d91a.tar.bz2 Seje2-a117775fb5ab6f41f2fb96ea5f8b2a456084d91a.zip | |
templates/taxonomy_{list, single}: new
Diffstat (limited to 'templates/taxonomy_single.html')
| -rw-r--r-- | templates/taxonomy_single.html | 34 | 
1 files changed, 34 insertions, 0 deletions
| diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html new file mode 100644 index 0000000..146753a --- /dev/null +++ b/templates/taxonomy_single.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} + +{% import "macros.html" as macros %} + +{% block content %} +{% if paginator %} +{% set pages = paginator.pages %} +{% else %} +{% set pages = term.pages %} +{% endif %} +<section class="posts"> +    <div class="post-title">{{ term.name }}</div> +    {% for post in pages %} +    <article class="post"> +        <div class="post-title"><a href="{{ post.permalink }}" class="post-title-link">{{ post.title }}</a></div> +        <div class="post-content"> +                {{ post.summary | safe }} +                <a href="{{ post.permalink }}" class="More">More</a> +        </div> +        <div class="post-meta"> +            {% if config.extra.seje_chinese_date %} +                {{ macros::format_chinese_date(year=post.year, month=post.month, day=post.day) }} +            {% else %} +                {{ post.date|date(format="%Y/%m/%d") }} +            {% endif %} +        </div> +    </article> +    {% endfor %} +{# {{ paginator.next }} #} +</section> +{% if paginator %} +{% include "paginator.html" %} +{% endif %} +{% endblock %} | 
