mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.git
synced 2024-09-19 09:57:52 +00:00
42 lines
964 B
HTML
42 lines
964 B
HTML
|
{{ $page := .Page -}}
|
||
|
{{ with .Site.Params.copyright -}}
|
||
|
{{ $fromYear := "" -}}
|
||
|
{{ $toYear := "" -}}
|
||
|
{{ $authors := "" -}}
|
||
|
{{ if reflect.IsMap . -}}
|
||
|
{{ $fromYear = .from_year -}}
|
||
|
{{ $toYear = .to_year -}}
|
||
|
{{ $authors = .authors -}}
|
||
|
{{ else -}}
|
||
|
{{ $authors = . -}}
|
||
|
{{ end -}}
|
||
|
|
||
|
<span class="td-footer__copyright">©
|
||
|
{{ with $fromYear -}}
|
||
|
{{ . }}–
|
||
|
{{- end -}}
|
||
|
{{ $toYear | default now.Year }}
|
||
|
<span class="td-footer__authors">
|
||
|
{{- $authors
|
||
|
| default (printf "%s Authors" ($.Site.Title | default "Site"))
|
||
|
| $page.RenderString -}}
|
||
|
</span>
|
||
|
{{- /* Trim WS */ -}}
|
||
|
</span>
|
||
|
|
||
|
{{- with T "footer_all_rights_reserved" -}}
|
||
|
<span class="td-footer__all_rights_reserved">
|
||
|
{{- . -}}
|
||
|
</span>
|
||
|
{{- end }}
|
||
|
|
||
|
{{- else -}}
|
||
|
|
||
|
{{ with .Site.Copyright -}}
|
||
|
<span class="td-footer__copyright">
|
||
|
{{- . | $page.RenderString -}}
|
||
|
</span>
|
||
|
{{- end -}}
|
||
|
|
||
|
{{ end -}}
|