From 8c6910f26911b9d6d4f85eda38247ba434617931 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 7 Nov 2022 21:00:53 -0600 Subject: [PATCH] making scrollToTop work on list pages as well --- layouts/_default/baseof.html | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 layouts/_default/baseof.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..0a24569 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,59 @@ +{{- partial "partials/functions/warnings.html" .Site -}} + + + {{- partial "head.html" . -}} + +
+ {{ i18n "nav.skip_to_main" }} +
+ {{ $header := print "partials/header/" .Site.Params.header.layout ".html" }} + {{ if templates.Exists $header }} + {{ partial $header . }} + {{ else }} + {{ partial "partials/header/basic.html" . }} + {{ end }} +
+
+ {{ block "main" . }}{{ end }} + {{ if (.Site.Params.footer.showScrollToTop | default true) }} + + {{ end }} +
+ {{- partial "footer.html" . -}} + {{ if .Site.Params.enableSearch | default false }} + {{- partial "search.html" . -}} + {{ end }} +
+ +