From d22d6c4fb51909591ae943c62e557f623092bbca Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 20 Dec 2020 12:25:29 +0100 Subject: [PATCH] feat(footer): add copyright since & custom text closes https://github.com/CaiJimmy/hugo-theme-stack/issues/55 --- exampleSite/config.yaml | 4 ++++ layouts/index.html | 2 +- layouts/partials/footer/footer.html | 12 +++++++++++- 3 files changed, 16 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..9f55f41 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,6 +1,16 @@ {{- $ThemeVersion := "1.1.0" -}}