Hexo-theme-next: post_meta don't display normally in the latest release [solved]

Created on 3 Apr 2018  ·  5Comments  ·  Source: theme-next/hexo-theme-next

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.
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

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:

  • [ ] Latest Master branch
  • [x] Latest Release version
  • [ ] Old version

NexT Scheme:

  • [x] All schemes
  • [ ] Muse
  • [ ] Mist
  • [ ] Pisces
  • [ ] Gemini

NexT Configuration:

all default

Other Information

https://imgur.com/a/yj3oo

Bug Solved ☑ Verified

Most helpful comment

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

For now u can define language as u want:

  • language: en (recommended)
  • language: default
  • language: (not defined value, by default)
  • not exists language (language: sfdgdgdf))
    — will be used en language as default.

If issue solved, close it please.

All 5 comments

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

@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:

  • In Hexo's default config language option not setted by default, e.g. language:
  • In Hexo's default config setted language: default

Possible fixes:

  • Add warning notes to docs about setting language option in main Hexo's config
  • Create default.yml symlink on _en.yml (best variant for now)
  • Rename _en.yml file on default.yml (need to check i18n services for this)

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

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+

@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.

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

For now u can define language as u want:

  • language: en (recommended)
  • language: default
  • language: (not defined value, by default)
  • not exists language (language: sfdgdgdf))
    — will be used en language as default.

If issue solved, close it please.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yidasanqian picture yidasanqian  ·  5Comments

utkuufuk picture utkuufuk  ·  6Comments

xuan512 picture xuan512  ·  4Comments

cong picture cong  ·  5Comments

hsiangfeng picture hsiangfeng  ·  5Comments