From c217e580ee111873cc14195b62574b05c32dad66 Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Mon, 1 May 2023 16:30:53 +0800 Subject: templates/macros: abstract post-meta section to a new macro --- templates/home.html | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'templates/home.html') 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 %} -
- {% 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 %} -
+ {{ macros::post_meta(post=post, chinese_date=config.extra.seje_chinese_date, expand=false) }} {% endfor %} {# {{ paginator.next }} #} -- cgit v1.2.3