Closed 3kis closed 1 year ago
index.md 是你的中文稿,添加一个 index.en.md 作为你的英文稿就行了
index.md 是你的中文稿,添加一个 index.en.md 作为你的英文稿就行了
非常感谢,根据你的回复,我解决了这个问题,想请教一下有没有什么办法避免写两份文件呢?? 感觉每次写blog都要写两次的话有点麻烦😮
https://gohugo.io/content-management/multilingual/#translation-by-content-directory https://gohugo.io/content-management/multilingual/#bypassing-default-linking 这两个试试吧
BTW,还需要i18n吗?
Thanks for your help~ i will hava a try
What happened?
I copy the config.yml from examplesite dir of repo, and I modified something I need, When I try to choose another language mode,my page cannot display properly. proper web page in zh-cn:
unproper web page in en:
config.yml:
What should i do to make the page in en display normally???
我从 repo 的examplesite目录中复制 config.yml,并修改了一些我需要的东西,当我试图选择另一种语言模式时,我的页面无法正确显示。我应该怎么做才能解决这个问题??
Hugo version
latest
Theme version
latest
What browsers are you seeing the problem on?
No response
More information about the browser
No response
Relevant log output
No response
Link to the page with bug
https://demo.stack.jimmycai.com
Link to the source repository
No response