Skip to content
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

如何设置多语言 #90

Open
tanglu1323123 opened this issue Mar 28, 2023 · 7 comments
Open

如何设置多语言 #90

tanglu1323123 opened this issue Mar 28, 2023 · 7 comments

Comments

@tanglu1323123
Copy link

tanglu1323123 commented Mar 28, 2023

作者你好,我看了下 hexo官网 的多语言设置,然而并没有看懂

我做了以下两处更改:

image

image

但是剩下的操作我就不会了...
请问还有什么需要设置呀?感谢

@zchengsite
Copy link
Owner

只用改language就行,你修改的是对的,重新编译下就行了
hexo clean && hexo g && hexo s

@tanglu1323123
Copy link
Author

tanglu1323123 commented Mar 28, 2023

/hexo/demo1/source/_posts/zh-TW 文件夹下有一个繁体中文测试文件 "stop-cc.md"

@tanglu1323123
Copy link
Author

tanglu1323123 commented Mar 29, 2023

哦 我看到了那个繁体中文文章
但是可不可以将那个繁体文章隐藏,然后在相关的简体文章中有一个语言切换按钮呀?
image

@zchengsite
Copy link
Owner

目前暂时不支持

@tanglu1323123
Copy link
Author

tanglu1323123 commented Mar 30, 2023

那看来我只能重新生成一个繁体站了
地址设置为 blog.tanglu.me/zh-TW

@sissilab
Copy link

但是可不可以将那个繁体文章隐藏,然后在相关的简体文章中有一个语言切换按钮呀?

Hello,这是一个很不错主题,简洁明了,我基于自己有发布多语言文章的需求,加入了这个支持同时发布多语言文章、并可以任意切换查看相应语言的文章,感兴趣可以看看:https://github.com/sissilab/hexo-theme-arch

@tanglu1323123
Copy link
Author

Hello,这是一个很不错主题,简洁明了,我基于自己有发布多语言文章的需求,加入了这个支持同时发布多语言文章、并可以任意切换查看相应语言的文章,感兴趣可以看看:https://github.com/sissilab/hexo-theme-arch

可是我已经用这个主题了,另外我觉得这个字体也不错,如果方便的话希望帮作者给oranges提交个多语言的pull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants