From 9678a1fddcd3122830439e347c978771740df53a Mon Sep 17 00:00:00 2001 From: gribse Date: Tue, 13 May 2025 21:16:42 +0200 Subject: [PATCH] Add footer partial and RSS feed support --- hugo.yml | 6 ++ layouts/partials/footer.html | 147 +++++++++++++++++++++++++++++++++++ 2 files changed, 153 insertions(+) create mode 100644 layouts/partials/footer.html diff --git a/hugo.yml b/hugo.yml index 3a81732..e6a0b18 100644 --- a/hugo.yml +++ b/hugo.yml @@ -59,6 +59,12 @@ params: dateFormat: "2006-01-02" # Set the desired date format here + ShowFullTextinRSS: true # Supports to show your whole contents in RSS, not just summary + +outputFormats: + RSS: + baseName: "feed" + outputs: home: - HTML diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..c0b28d4 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,147 @@ +{{- 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 }}