From 0d84f9d89131729e5a398cd31ca11b4e0e7aee8a Mon Sep 17 00:00:00 2001 From: geekifan Date: Sun, 27 Apr 2025 20:23:39 +0800 Subject: [PATCH] change from zh to zh-CN --- content/{_index.zh.md => _index.zh-CN.md} | 0 content/about/{index.md => index.en.md} | 0 content/about/{index.zh.md => index.zh-CN.md} | 0 content/archives/{index.zh.html => index.zh-CN.html} | 0 .../{index.zh.md => index.zh-CN.md} | 0 .../{index.zh.md => index.zh-CN.md} | 0 .../{index.zh.md => index.zh-CN.md} | 0 .../{index.zh.md => index.zh-CN.md} | 0 hugo.toml | 12 ++++++------ 9 files changed, 6 insertions(+), 6 deletions(-) rename content/{_index.zh.md => _index.zh-CN.md} (100%) rename content/about/{index.md => index.en.md} (100%) rename content/about/{index.zh.md => index.zh-CN.md} (100%) rename content/archives/{index.zh.html => index.zh-CN.html} (100%) rename content/post/2019-08-08-text-and-typography/{index.zh.md => index.zh-CN.md} (100%) rename content/post/2019-08-08-write-a-new-post/{index.zh.md => index.zh-CN.md} (100%) rename content/post/2019-08-09-getting-started/{index.zh.md => index.zh-CN.md} (100%) rename content/post/2019-08-11-customize-the-favicon/{index.zh.md => index.zh-CN.md} (100%) 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