-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Multilingual switch button support #1391
Conversation
大神,可以开发一个文章底部点赞功能么! |
已经有了,直接用就行。 |
Currently
Both posts will appear in the index page ( Therefore, this pull requestis only partially done. Full multi-language support needs to wait for the hexo generator implementation. |
这个效果怎么看不错来呢?设置后那个切换语言的按钮在哪呢? |
@suyin-long 需要在next/_config.yml中设置 |
图标是显示在底部了,一点击的话就是404了;模板要能根据选择语言读语言配置文件的数据就好了;这样至少整体页面结构首先就能切换了 |
你好,我设置了 |
I've made it generate automatically and works very well, except for some several glitches. Steps to set upNote for setting up multilingual website:
PS: This method has a bug that needs to be done in next-theme itself. Please see issue: https://github.com/next-theme/hexo-theme-next/issues/54 Current issues
Demo links
|
需要在根目录下的 _config.yml 修改 language,只有 language:
- en
- zh-CN |
修改语言后,侧边栏的tag,categories等按钮需要在source目录下设置对应语言文件夹下的index才能替换。但是点击跳转还是回到默认的英文路径下 |
Issue resolved: #1070