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

文章发表时间显示了两遍 #1249

Closed
yuan-ji opened this issue Nov 13, 2016 · 8 comments
Closed

文章发表时间显示了两遍 #1249

yuan-ji opened this issue Nov 13, 2016 · 8 comments

Comments

@yuan-ji
Copy link

yuan-ji commented Nov 13, 2016

Expected behavior (预期行为)

image

Actual behavior (实际行为)

image

Steps to reproduce the behavior (重现步骤)

每新建一个文档时间就显示两遍;
更换scheme无效
换回landscape日期正常

NexT Informations

Add the ✔ sign before an item which is affected by this behavior.

NexT Version:

  • Master: 5.1.0

NexT Scheme:

  • Pisces
@kovlento
Copy link

我也遇到这问题了

@innote
Copy link

innote commented Nov 13, 2016

@yuan-ji 其實是對的, Posted on 2016-11-04 | 2016-11-04 第一個日期, 是你create, 第二個日期是你有沒有modify 過你的文章。

@kovlento
Copy link

@innote 那如果不想显示modify的时间呢?

@yuan-ji
Copy link
Author

yuan-ji commented Nov 13, 2016

@innote 可是参见其他人都是只显示一次啊,有可以屏蔽modify的选项么

@innote
Copy link

innote commented Nov 13, 2016

@yuan-ji 5.1.0 才會有, 其它版本不會看到

@kovlento 如果你要拿掉, 可以去layout/_macro 裏面的post.swig
有一段關於

 </span>
            <time title="{{ __('post.modified') }}" itemprop="dateModified" datetime="{{ moment(post.updated).format() }}">
              {{ date(post.updated, config.date_format) }}
            </time>

delete 掉。 就可以了

@yuan-ji
Copy link
Author

yuan-ji commented Nov 13, 2016

@innote 嗯,问题解决,十分感谢!

@kovlento
Copy link

@innote 问题解决了 THX!!

@iissnan
Copy link
Owner

iissnan commented Nov 15, 2016

加了一组 setting:

# Post meta display settings
post_meta:
  created_at: true
  updated_at: false
  categories: true

@iissnan iissnan closed this as completed Nov 15, 2016
habren pushed a commit to habren/hexo-theme-next that referenced this issue Apr 9, 2017
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

4 participants