diff --git a/content/_index.zh.md b/content/_index.zh-CN.md similarity index 100% rename from content/_index.zh.md rename to content/_index.zh-CN.md diff --git a/content/about/index.md b/content/about/index.en.md similarity index 100% rename from content/about/index.md rename to content/about/index.en.md diff --git a/content/about/index.zh.md b/content/about/index.zh-CN.md similarity index 100% rename from content/about/index.zh.md rename to content/about/index.zh-CN.md diff --git a/content/archives/index.zh.html b/content/archives/index.zh-CN.html similarity index 100% rename from content/archives/index.zh.html rename to content/archives/index.zh-CN.html diff --git a/content/post/2019-08-08-text-and-typography/index.zh.md b/content/post/2019-08-08-text-and-typography/index.zh-CN.md similarity index 100% rename from content/post/2019-08-08-text-and-typography/index.zh.md rename to content/post/2019-08-08-text-and-typography/index.zh-CN.md diff --git a/content/post/2019-08-08-write-a-new-post/index.zh.md b/content/post/2019-08-08-write-a-new-post/index.zh-CN.md similarity index 100% rename from content/post/2019-08-08-write-a-new-post/index.zh.md rename to content/post/2019-08-08-write-a-new-post/index.zh-CN.md diff --git a/content/post/2019-08-09-getting-started/index.zh.md b/content/post/2019-08-09-getting-started/index.zh-CN.md similarity index 100% rename from content/post/2019-08-09-getting-started/index.zh.md rename to content/post/2019-08-09-getting-started/index.zh-CN.md diff --git a/content/post/2019-08-11-customize-the-favicon/index.zh.md b/content/post/2019-08-11-customize-the-favicon/index.zh-CN.md similarity index 100% rename from content/post/2019-08-11-customize-the-favicon/index.zh.md rename to content/post/2019-08-11-customize-the-favicon/index.zh-CN.md diff --git a/hugo.toml b/hugo.toml index c802f0f..0f22fae 100644 --- a/hugo.toml +++ b/hugo.toml @@ -5,7 +5,7 @@ defaultContentLanguage = "en" defaultContentLanguageInSubdir = false [languages] - [languages.zh] + [languages.zh-CN] languageName = "中文" languageCode = "zh-CN" weight = 1 @@ -78,31 +78,31 @@ path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5" weight = 50 pre = "fa-info-circle" -[[languages.zh.menu.main]] +[[languages.zh-CN.menu.main]] name = "主页" url = "/" weight = 10 pre = "fa-house" -[[languages.zh.menu.main]] +[[languages.zh-CN.menu.main]] name = "分类" url = "/categories/" weight = 20 pre = "fa-stream" -[[languages.zh.menu.main]] +[[languages.zh-CN.menu.main]] name = "标签" url = "/tags/" weight = 30 pre = "fa-tags" -[[languages.zh.menu.main]] +[[languages.zh-CN.menu.main]] name = "归档" url = "/archives/" weight = 40 pre = "fa-archive" -[[languages.zh.menu.main]] +[[languages.zh-CN.menu.main]] name = "关于" url = "/about/" weight = 50