summaryrefslogtreecommitdiff
path: root/templates/home.html
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2023-05-01 16:30:53 +0800
committerMole Shang <[email protected]>2023-05-01 16:41:03 +0800
commitc217e580ee111873cc14195b62574b05c32dad66 (patch)
tree418872f8ee4bc3c1c963eaea33f3b3cb4d245b11 /templates/home.html
parent2ab777d5827681c6464ac9f705567bb773f6b660 (diff)
downloadSeje2-c217e580ee111873cc14195b62574b05c32dad66.tar.gz
Seje2-c217e580ee111873cc14195b62574b05c32dad66.tar.bz2
Seje2-c217e580ee111873cc14195b62574b05c32dad66.zip
templates/macros: abstract post-meta section to a new macro
Diffstat (limited to 'templates/home.html')
-rw-r--r--templates/home.html8
1 files changed, 1 insertions, 7 deletions
diff --git a/templates/home.html b/templates/home.html
index 6c0f0c1..1242955 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -15,13 +15,7 @@
{{ 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>
+ {{ macros::post_meta(post=post, chinese_date=config.extra.seje_chinese_date, expand=false) }}
</article>
{% endfor %}
{# {{ paginator.next }} #}