gohugo-theme-bree/layouts/partials/footer.html
2022-07-17 21:02:06 +02:00

20 lines
626 B
HTML

{{- if or site.Params.footer .Params.editor }}
<div class="sidebar-item">
<p>
{{- with site.Params.footer -}}
{{- $footerText := replace . "{year}" now.Year -}}
{{- $footerText | safeHTML -}}
{{- end -}}
</p>
{{- with .Params.editor }}
<p>
{{ i18n "edited_by" . }},&nbsp;
{{- if not $.Params.Lastmod.IsZero -}}
{{- $.Params.Lastmod.Format "2006" -}}
{{- else -}}
{{- now.Format "2006" -}}
{{- end }}.
</p>
{{- end }}
</div>
{{ end }}