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

如何增加文章最后更新时间? #138

Open
doubleLLL3 opened this issue Feb 19, 2021 · 1 comment
Open

如何增加文章最后更新时间? #138

doubleLLL3 opened this issue Feb 19, 2021 · 1 comment

Comments

@doubleLLL3
Copy link

博主你好,请问是否可以获取.md文件的最后更新时间,然后在博客上体现出来呢?
我知道的是可以修改\themes\next\templates_blocks\post-footer.ejs文件,修改文章末尾的模板,不知道是不是可以在这里修改?
post-footer.ejs

@hsxyhao
Copy link
Owner

hsxyhao commented Feb 19, 2021

博主你好,请问是否可以获取.md文件的最后更新时间,然后在博客上体现出来呢?
我知道的是可以修改\themes\next\templates_blocks\post-footer.ejs文件,修改文章末尾的模板,不知道是不是可以在这里修改?
post-footer.ejs

这个要看在哪个位置加,是首页还是详情页,还有时间grideayou提供内置参数,应该是post.time,可以加群详细咨询

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

No branches or pull requests

2 participants