hugo-scroll/layouts/partials/footer.html
Daniel Holbach f1d65eeccb
Define contact information in params, add to footer of the page (#166)
contact icons in footer, opt-in via parameter
2023-12-23 19:08:45 +01:00

32 lines
1 KiB
HTML

<footer class="site-footer">
<div class="inner">
{{ if ne .Site.Params.footer.showContactIcons false }}
{{ with .Site.Params.contact }}
<section class="icons">
<ol>
<li><a href="mailto:{{ .email }}" aria-label='{{ i18n "email" }}'><i class="fa fa-envelope"></i></a></li>
<li><a href="tel:{{ .phone }}" aria-label='{{ i18n "phone" }}'><i class="fa fa-phone"></i></a></li>
</ol>
</section>
{{ end }}
{{ end }}
{{ with .Site.Params.copyright }}
<section class="copyright">{{ . | safeHTML }}</section>
{{ end }}
{{ if ne .Site.Params.hidedesignbyline true }}
<section>
<a href="https://themes.gohugo.io/hugo-scroll/" target="_blank" rel="noopener">Hugo Scroll</a> template
</section>
{{ end }}
{{ if ne .Params.enableGitInfo false }}
{{- if $.GitInfo -}}
<section>
version: {{ .Lastmod.Format "2006-01-02" }} | #{{ .GitInfo.AbbreviatedHash }}
</section>
{{- end -}}
{{ end }}
</div>
</footer>