diff options
author | eatradish <[email protected]> | 2022-04-09 19:34:05 +0800 |
---|---|---|
committer | eatradish <[email protected]> | 2022-04-09 19:34:05 +0800 |
commit | 4165b2c0d86d1e3f47a7caf9a086798e51315f3b (patch) | |
tree | 095511e33c1eeab5a7888f73a41e06de1155478f /templates/home.html | |
download | Seje2-4165b2c0d86d1e3f47a7caf9a086798e51315f3b.tar.gz Seje2-4165b2c0d86d1e3f47a7caf9a086798e51315f3b.tar.bz2 Seje2-4165b2c0d86d1e3f47a7caf9a086798e51315f3b.zip |
init
Diffstat (limited to 'templates/home.html')
-rw-r--r-- | templates/home.html | 29 |
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 %} |