如何设置hugo主题maupassant,默认语言

环境

  • hugo themes maupassant

解决

1.修改config.toml,新增默认语言设置
#languageCode = "zh-CN"
defaultContentLanguage = 'zh-hans'

2.发布测试
hugo server -D