summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 %}