From 9678a1fddcd3122830439e347c978771740df53a Mon Sep 17 00:00:00 2001 From: gribse Date: Tue, 13 May 2025 21:16:42 +0200 Subject: [PATCH 1/2] 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 }} From 68ce5a27521721933d733e2987bbb359e3fe07c2 Mon Sep 17 00:00:00 2001 From: gribse Date: Tue, 13 May 2025 21:17:19 +0200 Subject: [PATCH 2/2] move footer partial from PaperMod theme to layouts --- themes/PaperMod/layouts/partials/footer.html | 140 ------------------- 1 file changed, 140 deletions(-) delete mode 100644 themes/PaperMod/layouts/partials/footer.html diff --git a/themes/PaperMod/layouts/partials/footer.html b/themes/PaperMod/layouts/partials/footer.html deleted file mode 100644 index 7810203..0000000 --- a/themes/PaperMod/layouts/partials/footer.html +++ /dev/null @@ -1,140 +0,0 @@ -{{- if not (.Param "hideFooter") }} -
- {{- if not site.Params.footer.hideCopyright }} - {{- if site.Copyright }} - {{ site.Copyright | markdownify }} - {{- else }} - © {{ now.Year }} {{ site.Title }} - {{- end }} - {{- print " · "}} - {{- end }} - - {{- with site.Params.footer.text }} - {{ . | markdownify }} - {{- print " · "}} - {{- end }} - - {{- partial "donnees-chargement.html" -}} -
-{{- 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 }}