Add site launch year to copyright line

This commit is contained in:
Daniil Krymov 2022-02-12 21:42:04 +01:00
parent f7f25920fd
commit 449f494a38
No known key found for this signature in database
GPG Key ID: 49FF57C32BD36752

View File

@ -3,7 +3,7 @@
{{- if .Site.Copyright }} {{- if .Site.Copyright }}
<span>{{ .Site.Copyright | markdownify }}</span> <span>{{ .Site.Copyright | markdownify }}</span>
{{- else }} {{- else }}
<span>&copy; {{ now.Year }} <a href="{{ "" | absLangURL }}">{{- .Site.Params.label.text | default .Site.Title }}</a></span> <span>&copy; {{ if $.Site.Params.launchYear }}{{ .Site.Params.launchYear }}{{ end }}{{ now.Year }} {{ .Site.Title | default .Site.Params.label.text }}</span>
{{- end }} {{- end }}
{{- if not $.Site.Params.hideCredits }} {{- if not $.Site.Params.hideCredits }}
<span> <span>