From d1063e7df6009d73d020215b889aee73f2ac2617 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Tue, 23 Aug 2022 23:41:20 +0200 Subject: [PATCH] I don't like leading spaces --- layouts/partials/cover.html | 24 --------------------- layouts/partials/menu.html | 24 ++++++++++----------- layouts/partials/pagination.html | 36 +++++++++++++++---------------- layouts/shortcodes/audio.html | 7 ------ layouts/shortcodes/hyperbowl.html | 1 + 5 files changed, 31 insertions(+), 61 deletions(-) delete mode 100644 layouts/partials/cover.html create mode 100644 layouts/shortcodes/hyperbowl.html diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html deleted file mode 100644 index ea562ea..0000000 --- a/layouts/partials/cover.html +++ /dev/null @@ -1,24 +0,0 @@ -{{- $cover := false -}} -{{- $autoCover := default $.Site.Params.autoCover false }} - -{{- if index .Params "cover" -}} - {{- if .Resources.GetMatch .Params.Cover }} - {{- $cover = (.Resources.GetMatch .Params.Cover).RelPermalink -}} - {{- else -}} - {{- $cover = absURL .Params.Cover -}} - {{- end -}} -{{- else if $.Site.Params.AutoCover -}} - {{- if (not .Params.Cover) -}} - {{- if .Resources.GetMatch "cover.*" -}} - {{- $cover = (.Resources.GetMatch "cover.*").RelPermalink -}} - {{- end -}} - {{- end -}} -{{- end -}} - -{{if $cover -}} - - {{ .Title | plainify | default -{{- end }} diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 81f7b6f..fcb950b 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -1,14 +1,14 @@ diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 2b3cf5c..8b28942 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -1,20 +1,20 @@ diff --git a/layouts/shortcodes/audio.html b/layouts/shortcodes/audio.html index ae050cd..de883f8 100644 --- a/layouts/shortcodes/audio.html +++ b/layouts/shortcodes/audio.html @@ -1,10 +1,3 @@ -