theme-next / hexo-theme-next

Elegant and powerful theme for Hexo.
https://theme-next.org
Other
8.17k stars 2.05k forks source link

post_meta don't display normally in the latest release [solved] #209

Closed dandyxu closed 6 years ago

dandyxu commented 6 years ago

I agree and want to create new issue


Expected behavior

When I upgrade hexo to latest 3.7.0 and download latest release version of theme-next (v6.1.0), everything is fine but all post_meta don't display normally. For example, in the post_meta area, by default, it should display "Posted on 2018-04-03".

Actual behavior

But actually it displays as "post.posted 2018-04-03". The same as in the footer: Powered -> footer.powered etc.

Steps to reproduce the behavior

  1. Install hexo-cli and initial a new hexo from scratch;
  2. Clone theme-next v6.1.0 to the themes folder;
  3. Switch theme in the hexo _config.yml file to next and hexo generate;
  4. Hexo server and you will be able to see the issue.

Node.js and NPM Information

node: v9.3.0
npm: 5.6.0

Package dependencies Information

all default

Hexo Information

Hexo version

hexo: 3.7.0
hexo-cli: 1.1.0

Hexo Configuration

default yml file

NexT Information

NexT Version:

NexT Scheme:

NexT Configuration:

all default

Other Information

https://imgur.com/a/yj3oo

sli1989 commented 6 years ago

Live demo? How about releases/tag/v6.0.6?

ivan-nginx commented 6 years ago

@sli1989 no need to reproduce this bug in other NexT versions. I think it's appear after update to Hexo v3.7.0 with use default language fixes. So, need just to reproduce this bug under this Hexo version and try to resolve this.

Possible bugs:

Possible fixes:


@dandyxu can u confirm what in previous Hexo v3.6.0 this bug not detected? Checked, not detected in previous Hexo versions.

sli1989 commented 6 years ago

Need to set language: lang in Hexo v3.7.0. Can't leave it blank.


The bug has been confirmed only in Hexo v3.7.0+

dandyxu commented 6 years ago

@sli1989 @ivan-nginx Thanks for your responses and helps. As you said, the issue was happened because of language settings. Previously I set language : en and now I only need to change to language : _en or rename _en.yml file to default.yml, the issue is resolved.

@ivan-nginx I tried to install Hexo v3.6.0 but everytime I can only install the latest version v3.7.0. I'm sorry that I'm new to Hexo and I couldn't find any tutorials about installing specific version of Hexo neither. So I probably can't confirm whether this bug is also appeared in Hexo v3.6.0. However, if you can direct me some tutorials, I'm very appreciated about that. Thank you.

@sli1989 Thank you very much as well for trying to figure this issue out for me.

ivan-nginx commented 6 years ago

@dandyxu @sli1989 fixed in #210 and merged into master branch.

For now u can define language as u want:


If issue solved, close it please.