summaryrefslogtreecommitdiff
path: root/templates/home.html
diff options
context:
space:
mode:
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 %}