forked from eatradish/Seje2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
30 lines (28 loc) · 1003 Bytes
/
home.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% 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>
{% include "paginator.html" %}
{% endblock %}