From 0c2eff3f20d73d15892594eacfddcc357a83aa4c Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Thu, 20 Feb 2025 11:27:37 +0000 Subject: [PATCH] Rewrite footer --- config.yaml | 2 +- layouts/partials/footer.html | 132 +++++++++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/footer.html diff --git a/config.yaml b/config.yaml index bc9b74c..b6c2cb1 100644 --- a/config.yaml +++ b/config.yaml @@ -3,7 +3,7 @@ title: trude.dev pagination: pagerSize: 5 theme: PaperMod -copyright: "Open-source - MIT License" +copyright: "Source Code available on [GitHub](https://github.com/TrudeEH/web)" #canonifyURLs: true # Search diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..bc90612 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,132 @@ +{{- if not (.Param "hideFooter") }} + +{{- end }} + +{{- if (not site.Params.disableScrollToTop) }} + + + + + +{{- end }} + +{{- partial "extend_footer.html" . }} + + + +{{- if (not site.Params.disableScrollToTop) }} + +{{- end }} + +{{- if (not site.Params.disableThemeToggle) }} + +{{- end }} + +{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (.Param "ShowCodeCopyButtons")) }} + +{{- end }}