From 551de0c6f18d145848586b8cc1b55f2788edff23 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 5 Dec 2022 13:31:54 -0500 Subject: template fix --- layouts/_default/baseof.html | 26 ++++++++++++++++++++------ layouts/partials/footer.html | 22 ---------------------- 2 files changed, 20 insertions(+), 28 deletions(-) delete mode 100644 layouts/partials/footer.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a299bc0..6a1b6ff 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -19,18 +19,32 @@

{{ with .Params.icon }}{{ end }}{{ .Title }}

{{ with .Params.img }}{{ end }} -{{ block "main" . }} +{{ block "main" . -}} {{ .Content }} -{{ end }} -{{ if .Param "nextprev" }}{{ partial "nextprev.html" . -}}{{ end -}} -{{ if .Param "taglist" }}{{ partial "taglist.html" . }}{{ end -}} +{{- end -}}
+{{- if in .Params.tags "basic" -}} +{{ with .NextInSection }} + +{{- end }} +{{- with .PrevInSection }} +Or Previous: {{ .Title }} +{{- end -}} +{{- end }} +{{ if in .Params.tags "mail" -}} +{{ with .NextInSection -}} + +{{- end -}} +{{- with .PrevInSection }} +Or Previous: {{ .Title }} +{{- end -}} +{{- end }}
-{{ block "footer" . }} +{{ block "footer" . -}} -{{ end }} +{{- end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index ecfb175..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,22 +0,0 @@ - {{ if in .Params.tags "basic" }} - {{ with .NextInSection }} - - {{ end }} - {{ with .PrevInSection }} - Or Previous: {{ .Title }} - {{ end }} - {{ end }} - - {{ if in .Params.tags "mail" }} - {{ with .NextInSection }} - - {{ end }} - {{ with .PrevInSection }} - Or Previous: {{ .Title }} - {{ end }} - {{ end }} - - - - - -- cgit v1.2.3