From fa59259139e99bf70c9f6645ba9ff89a54e2e7ff Mon Sep 17 00:00:00 2001
From: Tobias Lindberg <tobias.ehlert@gmail.com>
Date: Sun, 05 Jan 2020 15:48:31 +0000
Subject: [PATCH] Adding "since year" and author support to footer (#245)
---
layouts/partials/footer.html | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index a5f42df..1677656 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -3,7 +3,14 @@
{{ with .Site.Params.footercontent | safeHTML }}
<p>{{.}}</p>
{{ end }}
- {{ if not .Site.Params.hideCopyright }} © {{ now.Format "2006" }}{{ end }}
+ {{ if not .Site.Params.hideCopyright }}
+ {{ with .Site.Params.since }}
+ © {{ if lt . now.Year }}{{ . }} - {{ end }}{{ now.Year }}
+ {{ else }}
+ © {{ now.Year }}
+ {{ end }}
+ {{ if .Site.Params.Author }} {{ .Site.Params.Author }} {{ end }}
+ {{ end }}
{{ if not .Site.Params.hideCredits }}
{{ if not .Site.Params.hideCopyright }} · {{ end }}
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
--
Gitblit v1.10.0