include 'powered by' in footer

This commit is contained in:
John Bowdre 2021-12-16 19:55:57 -06:00
parent 09c9a8273b
commit 1f5c5f82e2
2 changed files with 20 additions and 0 deletions

View file

@ -3,3 +3,9 @@ other = "On this page"
[series_posts]
other = "More "
[all_rights]
other = "All Rights Reserved"
[powered_by]
other = "Powered by Hugo, Clarity, GitLab, and Netlify"

View file

@ -0,0 +1,14 @@
{{- $s := .Site.Params }}
{{ $t := .Site.Title }}
{{- if or .Params.enableMathNotation $s.enableMathNotation }}
{{ partialCached "math" . }}
{{- end }}
{{- $iconsDir := default "icons/" .Site.Params.iconsDir }}
{{- $defaultFooterLogo := printf "%s%s" $iconsDir "apple-touch-icon.png"}}
<footer class="footer">
<div class="footer_inner wrap pale">
<img src='{{ absURL (default $defaultFooterLogo $s.footerLogo) }}' class="icon icon_2 transparent" alt="{{ $t }}">
<p>{{ T "copyright" }}{{ with $s.since }}&nbsp;{{ . }}-{{ end }}&nbsp;<span class="year"></span>&nbsp;{{ $t }}. {{ T "all_rights" }}. {{ T "powered_by" }}.</p>
{{- partialCached "top" .}}
</div>
</footer>