diff --git a/docsy.dev/config/_default/hugo.yaml b/docsy.dev/config/_default/hugo.yaml index 2070b83b0..c608d7560 100644 --- a/docsy.dev/config/_default/hugo.yaml +++ b/docsy.dev/config/_default/hugo.yaml @@ -23,11 +23,11 @@ imaging: languages: en: - languageName: English + label: English params: description: Docsy does docs fr: - languageName: Français + label: Français params: description: Docsy, c’est la doc. diff --git a/docsy.dev/content/en/docs/get-started/basic-configuration.md b/docsy.dev/content/en/docs/get-started/basic-configuration.md index 20060e4f9..777fd9a68 100644 --- a/docsy.dev/content/en/docs/get-started/basic-configuration.md +++ b/docsy.dev/content/en/docs/get-started/basic-configuration.md @@ -31,7 +31,7 @@ by removing the following lines from `hugo.toml`: ```toml [languages.no] -languageName ="Norsk" +label ="Norsk" contentDir = "content/no" [languages.no.params] title = "Goldydocs" @@ -40,7 +40,7 @@ time_format_default = "02.01.2006" time_format_blog = "02.01.2006" [languages.fa] -languageName ="فارسی" +label ="فارسی" contentDir = "content/fa" [languages.fa.params] title = "اسناد گلدی" diff --git a/docsy.dev/content/en/docs/language.md b/docsy.dev/content/en/docs/language.md index 6f03d655c..bed574782 100644 --- a/docsy.dev/content/en/docs/language.md +++ b/docsy.dev/content/en/docs/language.md @@ -29,14 +29,14 @@ defaultContentLanguageInSubdir = false ... [languages] [languages.en] -languageName ="English" +label ="English" # Weight used for sorting. weight = 1 [languages.en.params] title = "Goldydocs" description = "Docsy does docs" [languages.no] -languageName ="Norsk" +label ="Norsk" contentDir = "content/no" [languages.no.params] title = "Goldydocs" @@ -51,13 +51,13 @@ defaultContentLanguageInSubdir: false … languages: en: - languageName: English + label: English weight: 1 # used for sorting params: title: Docsy description: Docsy does docs 'no': - languageName: Norsk + label: Norsk contentDir: content/no params: title: Docsy @@ -72,7 +72,7 @@ languages: "defaultContentLanguageInSubdir": false, "languages": { "en": { - "languageName": "English", + "label": "English", "weight": 1, "params": { "title": "Docsy", @@ -80,7 +80,7 @@ languages: } }, "no": { - "languageName": "Norsk", + "label": "Norsk", "contentDir": "content/no", "params": { "title": "Docsy", diff --git a/docsy.dev/package.json b/docsy.dev/package.json index b2d799a7e..54643228c 100644 --- a/docsy.dev/package.json +++ b/docsy.dev/package.json @@ -43,7 +43,7 @@ "afdocs": "^0.9.2", "autoprefixer": "^10.4.27", "cross-env": "^10.1.0", - "hugo-extended": "0.157.0", + "hugo-extended": "0.161.1", "netlify-cli": "^24.0.1", "npm-check-updates": "^19.6.3", "postcss-cli": "^11.0.1", diff --git a/layouts/_partials/head-css.html b/layouts/_partials/head-css.html index ba2a48829..b2d8a0588 100644 --- a/layouts/_partials/head-css.html +++ b/layouts/_partials/head-css.html @@ -6,7 +6,7 @@ makes it snappier to develop in Chrome, but it may look sub-optimal in other browsers. */ -}} -{{ if eq .Site.Language.LanguageDirection "rtl" -}} +{{ if eq .Site.Language.Direction "rtl" -}} {{ $css = $css | postCSS (dict "use" "autoprefixer rtlcss" "noMap" true) | resources.Copy (replace $scssMain "." ".rtl.") -}} diff --git a/layouts/_partials/navbar-lang-selector.html b/layouts/_partials/navbar-lang-selector.html index d1ec84f26..7ba9d67e8 100644 --- a/layouts/_partials/navbar-lang-selector.html +++ b/layouts/_partials/navbar-lang-selector.html @@ -3,7 +3,7 @@ \ No newline at end of file + diff --git a/layouts/baseof.html b/layouts/baseof.html index 973872da6..a1fa37742 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -1,6 +1,6 @@ {{ partialCached "scripts.html" . }} - \ No newline at end of file + diff --git a/layouts/blog/baseof.html b/layouts/blog/baseof.html index d8e3538ca..460f33392 100644 --- a/layouts/blog/baseof.html +++ b/layouts/blog/baseof.html @@ -1,6 +1,6 @@ {{ partial "scripts.html" . }} - \ No newline at end of file + diff --git a/layouts/blog/baseof.print.html b/layouts/blog/baseof.print.html index 7efba0402..030ecace9 100644 --- a/layouts/blog/baseof.print.html +++ b/layouts/blog/baseof.print.html @@ -1,6 +1,6 @@ {{ partial "scripts.html" . }} - \ No newline at end of file + diff --git a/layouts/docs/baseof.print.html b/layouts/docs/baseof.print.html index 0fc9c4faa..4499749f1 100644 --- a/layouts/docs/baseof.print.html +++ b/layouts/docs/baseof.print.html @@ -1,6 +1,6 @@