diff options
author | Max le Fou <buttbadger@gmail.com> | 2021-06-08 21:13:24 +0300 |
---|---|---|
committer | Max le Fou <buttbadger@gmail.com> | 2021-06-08 21:13:24 +0300 |
commit | f24d15914a9f22e906ae4ddf5a274e51ffeb9dd3 (patch) | |
tree | 1e111e16a2bf0ccad6dd45ad2f4bd1213ddb77f2 | |
parent | ae54ba2ff5dad87492782a4ec9985bad6d5e445e (diff) | |
parent | a7706183940c9a55ca27f99cb99ea83c672a6342 (diff) |
Merge branch 'h3ndrik-master-patch-25286' into 'master'
use current year for copyright footer
See merge request maxlefou/hugo.386!7
-rw-r--r-- | layouts/partials/copyright.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/partials/copyright.html b/layouts/partials/copyright.html index 7a83dfe..0de293f 100644 --- a/layouts/partials/copyright.html +++ b/layouts/partials/copyright.html @@ -1,4 +1,3 @@ - {{ with .Site.Params.Copyright.Prefix }} {{ . | markdownify }} | {{end}} @@ -6,10 +5,10 @@ {{ with .Site.Params.copyright.url }}<a href="{{ . }}" target="_blank">{{ end }} {{ .Site.Params.copyright.name }} {{ with .Site.Params.copyright.url }}</a>{{ end }} -<span id="thisyear">2020</span> +<span id="thisyear">{{ now.Year }}</span> {{ with .Site.Params.Copyright.Suffix }} | {{ . | markdownify }} {{end}} {{ if isset .Site.Params "showhugo" }} | {{ i18n "builton" }} <a href="//gohugo.io" target="_blank">Hugo</a> -{{ end }}
\ No newline at end of file +{{ end }} |