diff options
author | Mole Shang <[email protected]> | 2023-05-01 16:30:53 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2023-05-01 16:41:03 +0800 |
commit | c217e580ee111873cc14195b62574b05c32dad66 (patch) | |
tree | 418872f8ee4bc3c1c963eaea33f3b3cb4d245b11 /templates/page.html | |
parent | 2ab777d5827681c6464ac9f705567bb773f6b660 (diff) | |
download | Seje2-c217e580ee111873cc14195b62574b05c32dad66.tar.gz Seje2-c217e580ee111873cc14195b62574b05c32dad66.tar.bz2 Seje2-c217e580ee111873cc14195b62574b05c32dad66.zip |
templates/macros: abstract post-meta section to a new macro
Diffstat (limited to 'templates/page.html')
-rw-r--r-- | templates/page.html | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/templates/page.html b/templates/page.html index 071b0a9..ec3116d 100644 --- a/templates/page.html +++ b/templates/page.html @@ -10,15 +10,7 @@ <div class="post-content"> {{ page.content | safe }} </div> - <div class="post-meta"> - <span class="post-time"> - {% if config.extra.seje_chinese_date %} - {{ macros::format_chinese_date(year=page.year, month=page.month, day=page.day) }} - {% else %} - {{ page.date|date(format="%Y/%m/%d") }} - {% endif %} - </span> - </div> + {{ macros::post_meta(post=page, chinese_date=config.extra.seje_chinese_date, expand=true) }} </article> <div class="prev_next"> |