From cea1064927d5b00f5b53a4a105b341c12ad0801f Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 20 Dec 2020 12:34:44 +0100 Subject: [PATCH] feat(footer): add copyright since & custom text (#74) closes https://github.com/CaiJimmy/hugo-theme-stack/issues/55 --- exampleSite/config.yaml | 4 ++++ layouts/index.html | 2 +- layouts/partials/footer/footer.html | 13 ++++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 64706d0..20dcda6 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -22,6 +22,10 @@ params: rssFullContent: true favicon: + footer: + since: 2020 + customText: + dateFormat: published: Jan 02, 2006 lastUpdated: Jan 02, 2006 15:04 MST diff --git a/layouts/index.html b/layouts/index.html index b04b926..576faef 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -11,7 +11,7 @@ {{- partial "pagination.html" . -}} - {{ partialCached "footer/footer" . }} + {{- partial "footer/footer" . -}} {{ end }} {{ define "right-sidebar" }} diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index 2443f4c..4155255 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,7 +1,18 @@ {{- $ThemeVersion := "1.1.0" -}}