Define contact information in params, add to footer of the page (#166)

contact icons in footer, opt-in via parameter
This commit is contained in:
Daniel Holbach 2023-12-23 19:08:45 +01:00 committed by GitHub
parent 4f5883c14d
commit f1d65eeccb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 44 additions and 2 deletions

View file

@ -1,5 +1,16 @@
<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 }}