Closed 1368129224 closed 2 years ago
把主题文件夹里的i18n里的zh-cn重新命名为cn试试?
DefaultContentLanguage: cn
改成 zh-cn
。
然后把 /content/_index.cn.md
改成 /content/_index.zh-cn.md
DefaultContentLanguage: cn
改成
zh-cn
。然后把
/content/_index.cn.md
改成/content/_index.zh-cn.md
尝试:
/content/_index.cn.md
改成 /content/_index.zh-cn.md
把 DefaultContentLanguage
改为 zh-cn
后,会报错
hugo server
Error: site config value "zh-cn" for defaultContentLanguage does not match any language definition
解决:
只需要把 /content/_index.cn.md
改成 /content/_index.zh-cn.md
,DefaultContentLanguage
保持 cn
,版权信息和搜索栏样式就正常显示了。
谢谢两位!!
Describe the bug
新手刚开始搭建,望大佬有空帮忙看看,非常感谢。另 建议建立群组(QQ/微信/tg)方便用户交流。
Expected behavior
Environment
Additional context
已将
themes\hugo-theme-stack
中的assets
复制到根目录,将exampleSite\content
中部分内容复制到content
中。Content of config.yaml
Link to the demo site and/or source repository
https://github.com/1368129224/Blog https://blog.zooter.com.cn/