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

Front-matter中的updated参数无法显示 #698

Closed
liu-yihong opened this issue Apr 19, 2020 · 6 comments
Closed

Front-matter中的updated参数无法显示 #698

liu-yihong opened this issue Apr 19, 2020 · 6 comments
Labels
feature:core Feature request that affects layout, styles, scripts, etc.
Milestone

Comments

@liu-yihong
Copy link

您好!我在post中尝试使用updated来标注文章更新时间,但是generate之后发现文章中并没有显示。请问icarus支持显示文章更新时间吗?会不会添加这个功能呢?

@ppoffice
Copy link
Owner

@liu-yihong 文章头部显示的是创建时间。若想显示更新时间,可修改此处:
https://github.com/ppoffice/hexo-theme-icarus/blob/master/layout/common/article.jsx#L44

@ppoffice ppoffice added the discussion Any questions about this theme. label Apr 19, 2020
@liu-yihong
Copy link
Author

@liu-yihong 文章头部显示的是创建时间。若想显示更新时间,可修改此处:
https://github.com/ppoffice/hexo-theme-icarus/blob/master/layout/common/article.jsx#L44

感谢您的回复!可否加入在文章头部显示创建时间,在文章结尾显示更新时间的功能呢?

@ppoffice ppoffice added feature:core Feature request that affects layout, styles, scripts, etc. and removed discussion Any questions about this theme. labels Apr 19, 2020
@fi6
Copy link

fi6 commented Aug 12, 2020

请问木有jsx基础,如何修改可以同时显示updated和date……感谢!

@liu-yihong
Copy link
Author

@fi6
Copy link

fi6 commented Aug 12, 2020

@fi6

请问木有jsx基础,如何修改可以同时显示updated和date……感谢!

目前好像还没有更新这个功能,你可以尝试这个教程
https://blog.vanxnf.top/2018/09/03/Hexo-%E5%8D%9A%E5%AE%A2-Hiker-%E4%B8%BB%E9%A2%98%E5%A2%9E%E5%8A%A0%E6%96%87%E7%AB%A0%E6%9C%80%E5%90%8E%E7%BC%96%E8%BE%91%E6%97%B6%E9%97%B4%EF%BC%8C%E5%B9%B6%E6%8C%89%E7%85%A7%E6%9C%80%E5%90%8E%E7%BC%96%E8%BE%91%E6%97%B6%E9%97%B4%E6%8E%92%E5%BA%8F/

这个直接复制粘贴的话,jsx和ejs语法好像不一样,会报错。。嘛不过也可以学习一下简单的jsx语法然后改,不过如果有现成的教学当然最好啦

@ppoffice
Copy link
Owner

Feature added in 670f314

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:core Feature request that affects layout, styles, scripts, etc.
Projects
None yet
Development

No branches or pull requests

3 participants