From f23d4163d8773a3bef21e1f3f272352d6fdb3ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 11 Nov 2022 13:44:23 +0100 Subject: [PATCH] theme: simplify refLangPrettyUglyURL.hugo #380 --- layouts/404.html | 2 +- layouts/partials/_taxonomy.html | 4 ++-- layouts/partials/header.html | 8 ++++---- layouts/partials/logo.html | 2 +- layouts/partials/menu.html | 14 +++++++------- layouts/partials/relLangPrettyUglyURL.hugo | 3 +-- layouts/partials/shortcodes/children.html | 6 +++--- layouts/partials/tags.html | 2 +- 8 files changed, 20 insertions(+), 21 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index fb12afbad5..6a8371c5cc 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -33,7 +33,7 @@

{{ T "message-404" }}

-

{{ T "Go-to-homepage" }}

+

{{ T "Go-to-homepage" }}

Page not found!

diff --git a/layouts/partials/_taxonomy.html b/layouts/partials/_taxonomy.html index d9b966f34c..7b92e1654c 100644 --- a/layouts/partials/_taxonomy.html +++ b/layouts/partials/_taxonomy.html @@ -13,12 +13,12 @@ {{- end }} {{- end }} {{- if $len }} -
  • {{ .Page.Title }} ({{ $len }})
  • +
  • {{ .Page.Title }} ({{ $len }})
  • {{- end }} {{- else }} {{- range sort .Pages "Title" }} {{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }} -
  • {{ .Title }}
  • +
  • {{ .Title }}
  • {{- end }} {{- end }} {{- end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 50e36a0ee4..b1379717b2 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -17,7 +17,7 @@ {{- if eq .Rel "canonical" }} {{ (printf $link .Permalink .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }} {{- else if and (ne .Name "JSON") (ne .Name "SEARCH") }} - {{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "page" $page "to" .)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }} + {{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }} {{- end }} {{- end }} {{- end }} @@ -49,7 +49,7 @@