From eb4bc4dcb39d320db6b82c94c4fab7a2412f5005 Mon Sep 17 00:00:00 2001 From: James McMurry Date: Thu, 10 Aug 2023 12:03:45 -0500 Subject: [PATCH] show hugo Site.Copyright message if set, otherwise Site.Title --- layouts/partials/footer/footer.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index c8d30cb..bbbc510 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -5,7 +5,12 @@ {{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }} {{ .Site.Params.footer.since }} - {{ end }} - {{ now.Format "2006" }} {{ .Site.Title }} + {{ now.Format "2006" }} + {{ if .Site.Copyright }} + {{ .Site.Copyright }} + {{ else }} + {{ .Site.Title }} + {{ end }}