ppoffice / hexo-theme-hueman

A redesign of Alx's wordpress theme Hueman, ported to Hexo.
http://ppoffice.github.io/hexo-theme-hueman/
GNU General Public License v2.0
1.17k stars 336 forks source link

Multi language #254

Open GerhardMes opened 5 years ago

GerhardMes commented 5 years ago

I made the changes to get an multi language site, as mentioned in the wiki.

But when $ hexo serve FATAL end of the stream or a document separator is expected at line 11, column 1:

Any advice?

ppoffice commented 5 years ago

@GerhardMes The configuration should be

language:
- de
- en

https://hexo.io/docs/internationalization

GerhardMes commented 5 years ago

I have done this, but nothing changed. What I get is that every blog post appears double, but when trying to switch to the second language "en", I get "Cannot GET /en/" I studied the hexo docs too, but nothing changed. I also setup up a fresh installation, but not changes. So I am totally lost. Everything looks just simple and working with hexo makes fun, but I need this feature. Any further advice?

ppoffice commented 5 years ago

@GerhardMes You might have luck with this https://github.com/Jamling/hexo-generator-i18n

GerhardMes commented 5 years ago

Sorry, but no. I hadn't luck with this. But thanks for your help.

GerhardMes commented 5 years ago

I have installed the Minos theme and (nearly) everything good within seconds. The only issue I got is that when placing the Language Switcher on top, the dropdown field goes up, so I cant see it.

But when switching back to Hueman, the theme crashes. Wanted to try to add the same logic to Hueman than Minos does. But that didn't worked out for me.