summaryrefslogtreecommitdiff
path: root/templates/home.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/home.html
downloadSeje2-4165b2c0d86d1e3f47a7caf9a086798e51315f3b.tar.gz
Seje2-4165b2c0d86d1e3f47a7caf9a086798e51315f3b.tar.bz2
Seje2-4165b2c0d86d1e3f47a7caf9a086798e51315f3b.zip
init
Diffstat (limited to 'templates/home.html')
-rw-r--r--templates/home.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/home.html b/templates/home.html
new file mode 100644
index 0000000..25c3032
--- /dev/null
+++ b/templates/home.html
@@ -0,0 +1,29 @@
+{% extends "base.html" %}
+
+{% import "macros.html" as macros %}
+
+{% block content %}
+<section class="posts">
+ {% for post in paginator.pages %}
+ <article class="post">
+ <div class="post-title"><a href="{{ post.permalink }}" class="post-title-link">{{ post.title }}</a></div>
+ <div class="post-content">
+ {% if config.extra.seje_show_summary_only %}
+ {{ post.summary }}
+ <a href="{{ post.permalink }}" class="More">More</a>
+ {% else %}
+ {{ post.content | safe }}
+ {% endif %}
+ </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>
+{% endblock %}