From b4160d5fafa65c4559185f7976ca032d356561bf Mon Sep 17 00:00:00 2001
From: Matt Jankowski
Date: Thu, 15 Jan 2026 14:46:52 -0500
Subject: [PATCH 1/3] Use hugo extended version 0.159.2
---
.github/workflows/deploy.yml | 2 +-
.tool-versions | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index f3bbd3c58..51a9bbfbc 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 87399852d..434b4de98 100644
--- a/.tool-versions
+++ b/.tool-versions
@@ -1 +1 @@
-hugo extended_0.152.2
+hugo extended_0.159.2
From f98b23f924e6ee7b84627d293221c22a2fa813ce Mon Sep 17 00:00:00 2001
From: Matt Jankowski
Date: Fri, 27 Mar 2026 14:50:48 -0400
Subject: [PATCH 2/3] Update deprecated value
---
layouts/_default/baseof.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 552391803..16c9ca775 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,5 +1,5 @@
-
+
{{ partial "head" }}
From 14a3424d82bf496fafb27dcea0fa3f8580bc6d78 Mon Sep 17 00:00:00 2001
From: Matt Jankowski
Date: Fri, 27 Mar 2026 14:55:07 -0400
Subject: [PATCH 3/3] Update deprecated value
---
config.toml | 10 +++++-----
layouts/_default/single.html | 2 +-
layouts/index.html | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/config.toml b/config.toml
index cbf63af4c..593cc162d 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/single.html b/layouts/_default/single.html
index bf77f4e92..41ea51109 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -19,7 +19,7 @@ {{ .Title }}
{{ i18n "otherTranslations" }}
{{ range .Translations }}
- {{ .Language.LanguageName }}
+ {{ .Language.Label }}
{{ end }}
{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index 8136e12a3..a38640501 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -19,7 +19,7 @@ {{ .Title }}
{{ i18n "otherTranslations" }}
{{ range .Translations }}
- {{ .Language.LanguageName }}
+ {{ .Language.Label }}
{{ end }}
{{ end }}