From 551d682d880084610d502261093dc3af616520b3 Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Sun, 14 Jan 2024 21:58:45 +0800 Subject: [PATCH] updt: multilingual --- exampleSiteMultilingual/hugo.toml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/exampleSiteMultilingual/hugo.toml b/exampleSiteMultilingual/hugo.toml index f203d68..483c922 100644 --- a/exampleSiteMultilingual/hugo.toml +++ b/exampleSiteMultilingual/hugo.toml @@ -86,6 +86,30 @@ weight = 3 [languages.pl.params] languageCode = "pl-pl" +[languages.zh] +languageName = "Chinese" + +[[languages.zh.menu.main]] +identifier = "about" +name = "O Hugo" +url = "/about/" +weight = 1 + +[[languages.zh.menu.main]] +identifier = "tags" +name = "Tagi" +url = "/tags/" +weight = 2 + +[[languages.zh.menu.main]] +identifier = "archive" +name = "Archiwum" +url = "/posts/" +weight = 3 + +[languages.zh.params] +languageCode = "zh-cn" + [taxonomies] category = "categories" tag = "tags"