summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2023-03-27 00:12:47 +0800
committerMole Shang <[email protected]>2023-04-16 21:51:16 +0800
commita117775fb5ab6f41f2fb96ea5f8b2a456084d91a (patch)
treeb397c7d2a6cc296a86eefec0b13f19b0d97fea01 /templates
parent9ac91dbeffeb73aa4161c0ffb9801007de763e34 (diff)
downloadSeje2-a117775fb5ab6f41f2fb96ea5f8b2a456084d91a.tar.gz
Seje2-a117775fb5ab6f41f2fb96ea5f8b2a456084d91a.tar.bz2
Seje2-a117775fb5ab6f41f2fb96ea5f8b2a456084d91a.zip
templates/taxonomy_{list, single}: new
Diffstat (limited to 'templates')
-rw-r--r--templates/taxonomy_list.html12
-rw-r--r--templates/taxonomy_single.html34
2 files changed, 46 insertions, 0 deletions
diff --git a/templates/taxonomy_list.html b/templates/taxonomy_list.html
new file mode 100644
index 0000000..3c83c16
--- /dev/null
+++ b/templates/taxonomy_list.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block content %}
+<section class="posts">
+ <h1 class="post-title">Tags</h1>
+ {% for term in terms %}
+ <section>
+ <div class="post-content"><a href="{{ term.permalink }}" class="post-title-link">{{ term.name }}</a></div>
+ </section>
+ {% endfor %}
+</section>
+{% endblock %}
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 %}