diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f3bbd3c586..51a9bbfbce 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,7 +40,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: "0.152.2" # Update along with .tool-versions + hugo-version: "0.159.2" # Update along with .tool-versions extended: true - name: Build diff --git a/.tool-versions b/.tool-versions index 87399852dc..434b4de984 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -hugo extended_0.152.2 +hugo extended_0.159.2 diff --git a/config.toml b/config.toml index cbf63af4c5..593cc162d4 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ baseURL = "https://docs.joinmastodon.org/" -languageCode = "en-us" +locale = "en-us" defaultContentLanguage = "en" title = "Mastodon documentation" pygmentsCodeFences = true @@ -192,20 +192,20 @@ disablePathToLower = true [languages] [languages.en] contentDir = "content/en" - languageName = "English" + label = "English" weight = -99 [languages.pl] contentDir = "content/pl" - languageName = "Polski" + label = "Polski" weight = 0 [languages.zh-cn] contentDir = "content/zh-cn" - languageName = "简体中文" + label = "简体中文" weight = 1 [languages.ja] contentDir = "content/ja" - languageName = "日本語" + label = "日本語" weight = 2 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5523918033..16c9ca775b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - +
{{ partial "head" }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index bf77f4e92b..41ea511096 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -19,7 +19,7 @@