From b0123f91e9227b8dec5e929db4d02ec3a5711881 Mon Sep 17 00:00:00 2001 From: jtbx Date: Fri, 3 Nov 2023 20:36:12 +0100 Subject: [PATCH] [TIDY] fix some html formatting --- themes/ccchh/layouts/_default/_markup/render-image.html | 6 +++--- themes/ccchh/layouts/_default/list.html | 4 ++-- themes/ccchh/layouts/_default/single.html | 4 ++-- themes/ccchh/layouts/_default/term.html | 2 +- themes/ccchh/layouts/blog/list.html | 2 +- themes/ccchh/layouts/partials/footer.html | 2 +- themes/ccchh/layouts/partials/head.html | 2 +- themes/ccchh/layouts/partials/menu.html | 7 +++---- themes/ccchh/layouts/shortcodes/img-resize.html | 6 +++--- 9 files changed, 17 insertions(+), 18 deletions(-) diff --git a/themes/ccchh/layouts/_default/_markup/render-image.html b/themes/ccchh/layouts/_default/_markup/render-image.html index 65122df..0172897 100644 --- a/themes/ccchh/layouts/_default/_markup/render-image.html +++ b/themes/ccchh/layouts/_default/_markup/render-image.html @@ -5,9 +5,9 @@ {{- $page := .Page }} {{- if not $isBundle }} - {{ $page_dir := path.Dir .Page.File }} - {{ $pagebundle_path := path.Join "/" $page_dir }} - {{ $page = .Page.Site.GetPage $pagebundle_path }} + {{- $page_dir := path.Dir .Page.File }} + {{- $pagebundle_path := path.Join "/" $page_dir }} + {{- $page = .Page.Site.GetPage $pagebundle_path }} {{- end -}} {{- with $page.Resources.Get $imagename }} diff --git a/themes/ccchh/layouts/_default/list.html b/themes/ccchh/layouts/_default/list.html index 1818f69..4319b7b 100644 --- a/themes/ccchh/layouts/_default/list.html +++ b/themes/ccchh/layouts/_default/list.html @@ -5,11 +5,11 @@ {{ end }} diff --git a/themes/ccchh/layouts/_default/single.html b/themes/ccchh/layouts/_default/single.html index acbb255..7521722 100644 --- a/themes/ccchh/layouts/_default/single.html +++ b/themes/ccchh/layouts/_default/single.html @@ -2,9 +2,9 @@

{{ .Title }}

- {{ with .Params.subtitle }} + {{- with .Params.subtitle }} {{ . }} - {{ end }} + {{- end }}
diff --git a/themes/ccchh/layouts/_default/term.html b/themes/ccchh/layouts/_default/term.html index f7e2999..f890cdf 100644 --- a/themes/ccchh/layouts/_default/term.html +++ b/themes/ccchh/layouts/_default/term.html @@ -4,7 +4,7 @@

{{ .Parent.Title }}: {{ .Title }}

- {{ range .Paginator.Pages }} + {{- range .Paginator.Pages }} {{ .Render "summary" }} {{- end }} {{ partial "pagination.html" . }} diff --git a/themes/ccchh/layouts/blog/list.html b/themes/ccchh/layouts/blog/list.html index 7794b7c..cd691a7 100644 --- a/themes/ccchh/layouts/blog/list.html +++ b/themes/ccchh/layouts/blog/list.html @@ -16,7 +16,7 @@ - {{ range .Paginator.Pages }} + {{- range .Paginator.Pages }} {{ .Render "summary" }} {{- end }} {{ partial "pagination.html" . }} diff --git a/themes/ccchh/layouts/partials/footer.html b/themes/ccchh/layouts/partials/footer.html index 93f5f50..ab3859c 100644 --- a/themes/ccchh/layouts/partials/footer.html +++ b/themes/ccchh/layouts/partials/footer.html @@ -2,6 +2,6 @@
diff --git a/themes/ccchh/layouts/partials/head.html b/themes/ccchh/layouts/partials/head.html index f3c74a4..2107397 100644 --- a/themes/ccchh/layouts/partials/head.html +++ b/themes/ccchh/layouts/partials/head.html @@ -16,7 +16,7 @@ {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} - {{ end -}} + {{- end }} {{ .Title }} diff --git a/themes/ccchh/layouts/partials/menu.html b/themes/ccchh/layouts/partials/menu.html index d023e37..84dea8d 100644 --- a/themes/ccchh/layouts/partials/menu.html +++ b/themes/ccchh/layouts/partials/menu.html @@ -4,7 +4,7 @@
    {{- if compare.Eq $menuID "main" -}} - {{ $image := resources.Get "images/logo.svg" }} + {{- $image := resources.Get "images/logo.svg" }}
  • CCCHH Icon
  • {{- end }} {{- range $menuContent }} @@ -21,12 +21,11 @@ {{- end -}} >{{ or (T .Identifier) .Name | safeHTML }} {{- end }} -
- {{- if compare.Eq $menuID "main" -}} + {{ if compare.Eq $menuID "main" -}}
  • unbekannt
    (seit )
- {{- end }} + {{- end -}} diff --git a/themes/ccchh/layouts/shortcodes/img-resize.html b/themes/ccchh/layouts/shortcodes/img-resize.html index b77beb2..8078dfe 100644 --- a/themes/ccchh/layouts/shortcodes/img-resize.html +++ b/themes/ccchh/layouts/shortcodes/img-resize.html @@ -6,9 +6,9 @@ {{- $page := .Page }} {{- if not $isBundle }} -{{ $page_dir := path.Dir .Page.File }} -{{ $pagebundle_path := path.Join "/" $page_dir }} -{{ $page = .Site.GetPage $pagebundle_path }} +{{- $page_dir := path.Dir .Page.File }} +{{- $pagebundle_path := path.Join "/" $page_dir }} +{{- $page = .Site.GetPage $pagebundle_path }} {{- if not $page.IsPage }} {{ $pagebundle_path := path.Join "/" .Page.Section }} {{ $page = .Site.GetPage $pagebundle_path }}