Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hugo extended_0.152.2
hugo extended_0.159.2
10 changes: 5 additions & 5 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
baseURL = "https://docs.joinmastodon.org/"
languageCode = "en-us"
locale = "en-us"
defaultContentLanguage = "en"
title = "Mastodon documentation"
pygmentsCodeFences = true
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<html lang="{{ .Site.Language.Locale }}">

<head>
{{ partial "head" }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>{{ .Title }}</h1>
{{ i18n "otherTranslations" }}

{{ range .Translations }}
<a href="{{ .RelPermalink }}" style="color: #606085;" hreflang="{{ .Lang }}">{{ .Language.LanguageName }}</a>
<a href="{{ .RelPermalink }}" style="color: #606085;" hreflang="{{ .Lang }}">{{ .Language.Label }}</a>
{{ end }}
{{ end }}
</p>
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>{{ .Title }}</h1>
{{ i18n "otherTranslations" }}

{{ range .Translations }}
<a href="{{ .RelPermalink }}" style="color: #606085;" hreflang="{{ .Lang }}">{{ .Language.LanguageName }}</a>
<a href="{{ .RelPermalink }}" style="color: #606085;" hreflang="{{ .Lang }}">{{ .Language.Label }}</a>
{{ end }}
{{ end }}
</p>
Expand Down