-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
关于在CI部署的站点中文章更新时间的问题 #4752
Comments
@SukkaW 苏卡卡大佬有没有什么解决方案...? |
https://theme-next.js.org/docs/getting-started/deployment.html#Continuous-Integration # Restore last modified time
"git ls-files -z | while read -d '' path; do touch -d \"$(git log -1 --format=\"@%ct\" \"$path\")\" \"$path\"; done" |
很抱歉我实在是不知道如何操作... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check List
Please check followings before submitting a new feature request.
Feature Request
在目前的Hexo版本中,如果使用诸如Github Action的CI工具部署站点,那么post.updated这一项似乎会有些问题...
如果设置为mtime,那么所有文章的更新时间是Action部署站点的时间,而如果设置为date,那就会保持文章创建时间不变。
我个人希望即使是使用Action部署,Hexo仍然能够清晰的区分发布时间和更新时间...比如读取Git仓库的提交记录来判断更新时间。
目前现有的处理方法...比如手动添加updated或者手动更改date都太过繁琐,希望诸位大佬能够提供解决方案...
Others
The text was updated successfully, but these errors were encountered: