-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
feat : Add Article expiration reminder support #265
Conversation
Someone is attempting to deploy a commit to a Personal Account owned by @HEIGE-PCloud on Vercel. @HEIGE-PCloud first needs to authorize it. |
我想做的一些改动
|
这个我已经做过了。outdatedInfoWarning: false 可以添加在每篇文章的文件头里来控制是否启用该功能:
警告位置我已经修改过了。 |
- Rename outdatedInfoWarning to outdatedArticleReminder - Rename hint to reminder - Rename warn to warning - Move outdatedArticleReminder from params to params.pages - Add documentation for example config - Add documentation for front matter - Update translation for en and zh-CN - clean up code for outdatedArticleReminder.html
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pcloud/do-it/5aVhVXcH8bYEXY9VhAjqiBQBqKEV |
我做了一些 code clean up,加了一些文档。麻烦你再看一下,如果没有问题就可以合并了 👍 |
我已经测试过了没问题。 @HEIGE-PCloud |
@@ -629,6 +629,16 @@ enableEmoji = true | |||
# Page style ("normal", "wide") | |||
# 页面样式 ("normal", "wide") | |||
pageStyle = "wide" | |||
# Display a message at the beginning of an article to warn the reader that its content might be outdated. | |||
# 在文章开头显示提示信息,提醒读者文章内容可能过时。 | |||
[params.pages.outdatedArticleReminder] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
想问一下, key值为params.pages
而不是params.page
有什么原因吗?
以及要是能改进一下indentation就好了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
抱歉... 已修改...
效果如下所示: