From a4d7eb3419dc9288054555b03949ad3597788cb2 Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 5 May 2022 00:57:34 +0800 Subject: [PATCH] just replace absLangURL with absURL, stop using DisableLanguageSwitch start from this commit, PaperModX will no longer support multi language site, post still have language, but there won't be /zh, /zh/archives pages --- layouts/partials/breadcrumbs.html | 2 +- layouts/partials/footer.html | 2 +- layouts/partials/header.html | 34 +++---------------------------- 3 files changed, 5 insertions(+), 33 deletions(-) diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index 7e8257b..c6b313f 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -3,7 +3,7 @@ {{- $url := replace .Parent.Permalink (printf "%s" site.BaseURL) "" }} {{- $lang_url := strings.TrimPrefix (printf "%s/" .Lang) $url -}} - {{ i18n "home" | default "Home" }} + {{ i18n "home" | default "Home" }} {{- $scratch := newScratch }} {{- range $index, $element := split $lang_url "/" }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e676aa3..ff47b97 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -3,7 +3,7 @@ {{- if site.Copyright }} {{ site.Copyright | markdownify }} {{- else }} - © {{ now.Year }} {{ site.Title }} + © {{ now.Year }} {{ site.Title }} {{- end -}} CC BY-SA diff --git a/layouts/partials/header.html b/layouts/partials/header.html index d9736d1..6db7c94 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -44,11 +44,7 @@ {{- $currentPage := . }}