Closed twatzl closed 5 years ago
I note that the get_config('language')
is the helper function of icarus
, and I read the source code of the theme, the theme will read config from hexo _config.yml
and theme _config.yml
but the default theme _config.yml
is empty. The i18n plugin works on multi-languages. The languages config in hexo _config.yml
must be language array. If there is only one language, it's not suggested to use i18n plugin. Here is some suggestions.
1, try to config single language string in theme _config.yml
2, modify the theme source code to support multilang, the simplest way is removing the html lang attribute in layout.ejs
3, new one issue in theme project on github, suggesting the owner of project to add multi-language supporting feature.
Hello,
I am using the Icarus theme for my blog (https://github.com/ppoffice/hexo-theme-icarus) however it seems icarus expects the language to be a string and not an array.
Is there any way to fix this? For example use a different config setting for the i18n generator and set language to the language currently being rendered?
As a workaround I was able to just delete the line, but I don't think that is a great solution.