Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在配置updated中增加设置项,使”本文最后更新于“可以永久显示 #1151

Open
yqs112358 opened this issue Nov 14, 2024 · 0 comments
Labels
✨ enhancement New feature request

Comments

@yqs112358
Copy link

请描述该需求尝试解决的问题

如题,根据

<% if (theme.post.updated.enable && theme.post.updated && compare_date(page.date, page.updated)) { %>

目前似乎只有date和updated两个时间不一样的时候才会显示”本文最后更新于“。而我希望可以使这个横幅永久显示,这样可以有效提醒读者文章的时效性,不管此文章是否曾更新过。

请描述您认为可行的解决方案

建议在配置updated中增加设置项,控制”本文最后更新于“横幅的显示逻辑:永久显示/按需显示/禁止显示

考虑过的替代方案

直接移除compare_date(page.date, page.updated)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature request
Projects
None yet
Development

No branches or pull requests

1 participant