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

添加“文章时效性”提示 #1052

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

firstmetcs
Copy link

总览

该修改涉及以下方面:

  • 添加了“文章时效性”提示

功能点

“文章时效性”提示

效果

image

配置

post:
  # 在文章开头显示文章过期/时效提示
  outdate: 
    enable: false
    # 文章时效提示使用警告样式的天数,超过此天数显示警告样式的note
    warning_day: 200
    # 文章时效提示使用错误样式的天数,超过此天数显示错误样式的note
    error_day: 400

功能点详述

功能使用post.outdate配置“文章时效性”提示,开启后若文章发布日期位于warning_dayerror_day之间,则显示警告note样式,若大于error_day则显示错误样式,文案如:这是一篇发布于1000天前的文章,部分信息可能已发生改变,请注意甄别。

修复点

修复了 #1051

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

Successfully merging this pull request may close these issues.

None yet

1 participant