diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml
index 3ad53623..236a8c74 100644
--- a/config/_default/hugo.toml
+++ b/config/_default/hugo.toml
@@ -10,19 +10,33 @@ enableRobotsTXT = true
# contains ``).
disableKinds = ["taxonomy", "RSS"]
+defaultContentLanguage = "zh-Hans"
+
[languages]
+[languages.zh-Hans]
+title = "Matrix 规范"
+languageName = "简体中文"
+weight = 1
+contentDir = "locales/zh-Hans"
+[languages.zh-Hans.params]
+description = "Matrix 去中心化通信规范的首页"
[languages.en]
title = "Matrix Specification"
languageName ="English"
# Weight used for sorting.
-weight = 1
+weight = 2
+contentDir = "content/"
[languages.en.params]
description = "Home of the Matrix specification for decentralised communication"
# Entries in the main menu in the header.
[menus]
[[menus.main]]
- name = 'Foundation'
+ name = '翻译'
+ url = 'https://codeberg.org/wholetrans/docs-matrix-spec'
+ weight = 5
+[[menus.main]]
+ name = '基金会'
url = 'https://matrix.org/foundation/'
weight = 10
[[menus.main]]
@@ -30,7 +44,7 @@ description = "Home of the Matrix specification for decentralised communication"
url = 'https://matrix.org/faq'
weight = 20
[[menus.main]]
- name = 'Blog'
+ name = '博客'
url = 'https://matrix.org/blog/posts'
weight = 30
@@ -56,7 +70,7 @@ description = "Home of the Matrix specification for decentralised communication"
# Everything below this are Site Params
[params]
-copyright = "The Matrix.org Foundation CIC"
+copyright = "The Matrix.org Foundation CIC. Translation maintained by WholeTrans."
[params.version]
# must be one of "unstable", "current", "historical"
@@ -92,6 +106,11 @@ sidebar_menu_compact = true
# icon = "fab fa-github"
# desc = "Matrix on GitHub"
# Custom links shown in the center of the footer. (Only supported by our fork of docsy's 'footer/central' partial.)
+[[params.links.bottom]]
+ name = "Localization Repo"
+ url = "https://codeberg.org/wholetrans/docs-matrix-spec"
+ icon = "far fa-language"
+ desc = "Localization Repository"
[[params.links.bottom]]
name = "GitHub"
url = "https://github.com/matrix-org"
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html
index ca8347ee..11be97b5 100644
--- a/layouts/partials/navbar.html
+++ b/layouts/partials/navbar.html
@@ -26,7 +26,7 @@
{{- /**/ -}}
- specification
+ 规范
{{- /**/ -}}
— {{ partial "version-string" . }}