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? #492

Closed
nuomi1 opened this issue Nov 8, 2015 · 8 comments
Closed

无法应用 Front-matter 的 updated? #492

nuomi1 opened this issue Nov 8, 2015 · 8 comments

Comments

@nuomi1
Copy link

nuomi1 commented Nov 8, 2015

hexo 官方文档中写到 Front-matter 有 updated 参数,但是 next 并没有应用。
在首页里只写着「发表于」,而没有「更新于」,希望增加这个功能。

@Haocen
Copy link
Contributor

Haocen commented Jan 27, 2016

确实是。这个主题不支持显示文章更新的时间。相应的配置文件中不存在这个变量。

@magicse7en
Copy link

什么时候可以增加这个功能呢?

@alex4814
Copy link

+1

@saccohuo
Copy link

新版里面设置了这个之后,问题可以解决了么?

post_meta:
  updated_at: true

@chendaojin
Copy link

chendaojin commented Oct 10, 2017

为什么我的显示是 “更新于:2017-10-10” 而不是 “更新于 2017-10-10” 呢,多了个冒号。zh-Hans.yml文件正常。<span class="post-meta-item-text">更新于:</span>

@AlanLang
Copy link

AlanLang commented Jan 2, 2018

显示更新于可以把 updated_at 设置为 true,如下

post_meta:
  item_text: true
  created_at: true
  updated_at: true
  categories: true

结果我也是更新于后面会多一个冒号
如果看着不爽可以文件 _macor/post.swing 第86行
<span class="post-meta-item-text">{{ __('post.modified') }}&#58;</span>
改成
<span class="post-meta-item-text">{{ __('post.modified') }}</span>

@stevenjoezhang
Copy link
Contributor

请使用新版本:https://github.com/theme-next/hexo-theme-next
已重构有关文章更新时间的逻辑

@ivan-nginx
Copy link
Collaborator

NexT is rebased into organization repo.
If you want new feature, fix, or support, create new in NexT v6.x / v7.x repo (desirable in English).

There is instructions on English or Chinese how to update from v5.1.x to v 6.x

You also may read this for details.

Repository owner locked as resolved and limited conversation to collaborators Mar 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants