From 29be42aaa260bb43b159fbaa9eadac656d058f57 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Sun, 22 Mar 2020 09:17:17 +0100 Subject: [PATCH] Implemented the new languageDirection setting. --- README.md | 7 +++---- layouts/_default/baseof.html | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f9debda..8e71100 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ https://themes.gohugo.io/theme/hugo-theme-zen/ ## Minimum Hugo version -Hugo version 0.55.0 or higher is required. +Hugo version 0.57.0 or higher is required. ## Installation @@ -276,7 +276,7 @@ A language selector will be included on sites with more than one language. Add ` The language selector will link to a translation of the current page if it exist and to the front page if it does not. -For "rtl" languages add a `dir` parameter to the language configuration. If not added it will default to "ltr". +For "rtl" languages add a `languageDirection` parameter (added in Hugo v0.67.1) to the language configuration. If not added it will default to "ltr". ``` languages: @@ -289,8 +289,7 @@ languages: ar: weight: 3 languageName: "العربية" - params: - dir: "rtl" + languageDirection: "rtl" ``` diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 76f1bff..00b8bcf 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - +