From 6cffb948e4d074622a2b68cd88e170490a8e03ab Mon Sep 17 00:00:00 2001 From: Michael Ryan Date: Sat, 2 Apr 2022 02:22:45 -0700 Subject: [PATCH] feat: use official 'Language.LanguageDirection' parameter instead of custom 'languagedir' --- exampleSite/config/_default/languages.toml | 4 ++-- layouts/_default/baseof.html | 2 +- layouts/_default/list.html | 2 +- layouts/_default/single.html | 2 +- layouts/_default/taxonomy.html | 2 +- layouts/about/single.html | 2 +- layouts/archive/list.html | 8 ++++---- layouts/contact/single.html | 2 +- layouts/index.html | 2 +- layouts/partials/body/main-left.html | 4 ++-- layouts/partials/body/main-right.html | 4 ++-- layouts/partials/navbar/nav-menu-mobile.html | 2 +- layouts/partials/navbar/nav-menu.html | 6 +++--- layouts/partials/navbar/site-nav.html | 2 +- layouts/partials/pagination/pagination-single.html | 2 +- layouts/partials/publication/pub-overview.html | 2 +- layouts/partials/script/single-script.html | 2 +- layouts/partials/search/search-result-desktop.html | 2 +- layouts/partials/search/site-search-mobile.html | 2 +- layouts/partials/showcase/show-pinned.html | 2 +- layouts/partials/showcase/show-section.html | 2 +- layouts/partials/sidebar/sidebar-single.html | 2 +- layouts/partials/sidebar/site-bio.html | 2 +- layouts/partials/summary/card.html | 8 ++++---- layouts/partials/summary/classic.html | 8 ++++---- layouts/partials/summary/compact.html | 8 ++++---- layouts/partials/taxonomy/taxonomy-categories.html | 2 +- layouts/partials/taxonomy/taxonomy-series.html | 2 +- layouts/partials/taxonomy/taxonomy-tags.html | 2 +- layouts/presentation/single.html | 2 +- layouts/publication/single.html | 2 +- layouts/resume/single.html | 4 ++-- layouts/talks/list.html | 10 +++++----- 33 files changed, 55 insertions(+), 55 deletions(-) diff --git a/exampleSite/config/_default/languages.toml b/exampleSite/config/_default/languages.toml index 23989a5..8c17fdd 100644 --- a/exampleSite/config/_default/languages.toml +++ b/exampleSite/config/_default/languages.toml @@ -2,12 +2,12 @@ title = "Hugo Zzo Theme" languageName = "English" weight = 1 - languagedir = "ltr" + languageDirection = "ltr" contentdir = "content/en" [ko] title = "Hugo Zzo Theme" languageName = "한국어" weight = 2 - languagedir = "ltr" + languageDirection = "ltr" contentdir = "content/ko" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ae3c6c9..67b6f12 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f154fd9..6ce4967 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -22,7 +22,7 @@ {{ if $.Param "enableSidebar" }} -