summaryrefslogtreecommitdiff
path: root/templates/section.html
diff options
context:
space:
mode:
authoreatradish <[email protected]>2022-04-09 19:34:05 +0800
committereatradish <[email protected]>2022-04-09 19:34:05 +0800
commit4165b2c0d86d1e3f47a7caf9a086798e51315f3b (patch)
tree095511e33c1eeab5a7888f73a41e06de1155478f /templates/section.html
downloadSeje2-4165b2c0d86d1e3f47a7caf9a086798e51315f3b.tar.gz
Seje2-4165b2c0d86d1e3f47a7caf9a086798e51315f3b.tar.bz2
Seje2-4165b2c0d86d1e3f47a7caf9a086798e51315f3b.zip
init
Diffstat (limited to 'templates/section.html')
-rw-r--r--templates/section.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/templates/section.html b/templates/section.html
new file mode 100644
index 0000000..bca7f6b
--- /dev/null
+++ b/templates/section.html
@@ -0,0 +1,42 @@
+{% extends "base.html" %}
+
+{% import "macros.html" as macros %}
+
+{% block content %}
+<article class="post">
+ <div class="post-title">
+ <h1 class="title">{{ section.title }}</h1>
+ </div>
+ <div class="post-content">
+ {{ section.content | safe }}
+ </div>
+ <div class="post-meta">
+ <span class="post-time">
+ {% if config.extra.seje_chinese_date %}
+ {{ macros::format_chinese_date(year=section.extra.year, month=section.extra.month, day=section.extra.day) }}
+ {% else %}
+ {{ section.extra.date|date(format="%Y/%m/%d") }}
+ {% endif %}
+ </span>
+ </div>
+</article>
+
+<div class="prev_next">
+<nav id="prev_next">
+ <div class="prev">
+ {% if section.later %}
+ <p>Newer</p><a href="{{ section.later.permalink }}"><div class="article-nav-title">{{ section.later.title }}</div></a>
+ {% endif %}
+ </div>
+ <div class="next">
+ {% if section.earlier %}
+ <p>Older</p><a href="{{ section.earlier.permalink }}"><div class="article-nav-title">{{ section.earlier.title }}</div></a>
+ {% endif %}
+ </div>
+</nav>
+</div>
+
+<div class="post-comment">
+{# Discussion #}
+</div>
+{% endblock %}