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:
parent
4f5883c14d
commit
f1d65eeccb
8 changed files with 44 additions and 2 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
1
layouts/shortcodes/email.html
Normal file
1
layouts/shortcodes/email.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
{{ .Site.Params.contact.email }}
|
||||
1
layouts/shortcodes/phone.html
Normal file
1
layouts/shortcodes/phone.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
{{ .Site.Params.contact.phone }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue