diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/footer.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index c0a6d49..e66dfc6 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,8 +1,10 @@ <div class="sidebar-item"> <p> - {{- with site.Params.footer }} - {{ . | safeHTML }} - {{- else }} + {{- with site.Params.footer -}} + {{- $footer_text := replace . "{year}" now.Year -}} + {{- $footer_text = replace $copyright "©" "©" }} + {{ $footer_text | safeHTML }} + {{- else }}{{- /* TODO: translate strings */ -}} {{- with .Params.editor }}<p>Edited by {{ . }}, {{ now.Format "2006" }}.</p>{{ end }} Built with <a href="https://github.com/sergeyklay/gohugo-theme-ed" target="_blank" rel="noopener noreferrer">Ed.</a> Distributed under an MIT license. |
