From d03215d1226c66fd15c6c88d1adb0d8c6062d509 Mon Sep 17 00:00:00 2001 From: yqs112358 <37969157+yqs112358@users.noreply.github.com> Date: Thu, 14 Nov 2024 09:05:32 +0800 Subject: [PATCH] feat: allow always show post updated banner --- _config.yml | 4 ++++ layout/post.ejs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 6cc364d5..1f647399 100644 --- a/_config.yml +++ b/_config.yml @@ -608,6 +608,10 @@ post: # Update date is displayed at the beginning of the post. The default date is the update date of the md file, which can be manually specified by `updated` in front-matter (same format as date) updated: enable: false + + # 是否永久显示更新时间横幅,如为false则仅修改文章后才显示 + # Whether to permanently display the update-time banner. If set to false then it will only be displayed after modifying the article + always_show: false # 格式参照 ISO-8601 日期格式化 # ISO-8601 date format diff --git a/layout/post.ejs b/layout/post.ejs index 9dee4076..ffd9cd4f 100644 --- a/layout/post.ejs +++ b/layout/post.ejs @@ -15,7 +15,7 @@ page.banner_mask_alpha = page.banner_mask_alpha || theme.post.banner_mask_alpha