diff options
author | Dimitri Staessens <[email protected]> | 2019-03-16 17:43:05 +0100 |
---|---|---|
committer | Dimitri Staessens <[email protected]> | 2019-03-16 17:43:05 +0100 |
commit | 79acfcf1599496e67b20c39c00a100b07c383ab1 (patch) | |
tree | 0651646a631545b2ff56074f4c8f492d69dbb170 /themes/terrassa/layouts/partials/footer.html | |
parent | 4b98568dbdc0dddf8255abbbb08565821b79f839 (diff) | |
download | website-79acfcf1599496e67b20c39c00a100b07c383ab1.tar.gz website-79acfcf1599496e67b20c39c00a100b07c383ab1.zip |
theme: Add terrassa theme
Diffstat (limited to 'themes/terrassa/layouts/partials/footer.html')
-rw-r--r-- | themes/terrassa/layouts/partials/footer.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/themes/terrassa/layouts/partials/footer.html b/themes/terrassa/layouts/partials/footer.html new file mode 100644 index 0000000..b2b27bc --- /dev/null +++ b/themes/terrassa/layouts/partials/footer.html @@ -0,0 +1,66 @@ +<footer class="footer"> + {{ if $.Site.Params.social }} + {{ $items := $.Site.Params.social }} + {{ $len := (len $items) }} + + {{ if gt $len 0 }} + <div class="footer__social"> + {{ range $k, $v := $items }} + {{ if $v}} + <a href="{{ $v }}" class="footer__social__link" alt="{{ $k }}" target="_blank" aria-label="{{ $v }}" rel="noopener"> + <span> + <i class="fab fa-{{ $k }}"></i> + </span> + </a> + {{ end }} + {{ end }} + </div> + {{ end }} + {{ end }} + + <address class="footer__contact"> + {{ if $.Site.Params.contact.email }} + <p class="footer__contact__item"> + <span><i class="far fa-envelope"></i></span> + <a href="mailto:{{ $.Site.Params.contact.email}}" class="footer__contact__link" alt="Email"> + {{ $.Site.Params.contact.email }} + </a> + </p> + {{ end }} + + {{ if $.Site.Params.contact.phone }} + <p class="footer__contact__item"> + <span><i class="fas fa-phone"></i></span> + <a href="tel:{{ $.Site.Params.contact.phone }}" class="footer__contact__link" alt="Phone"> + {{ $.Site.Params.contact.phone }} + </a> + </p> + {{ end }} + + {{ if $.Site.Params.contact.skype }} + <p class="footer__contact__item"> + <span><i class="fab fa-skype"></i></span> + <a href="skype:{{ $.Site.Params.contact.skype }}" class="footer__contact__link" alt="Skype"> + {{ $.Site.Params.contact.skype }} + </a> + </p> + {{ end }} + + {{ if $.Site.Params.contact.address }} + <p class="footer__contact__item"> + <span><i class="fas fa-map-marker-alt"></i></span> + {{ $.Site.Params.contact.address }} + </p> + {{ end }} + </address> + + <div class="copy"> + {{ if $.Site.Params.copy.copy }} + <p>{{ $.Site.Params.copy.copy }}</p> + {{ else }} + <p>© {{ now.Format "2006" }} - {{ $.Site.Title }}</p> + {{ end }} + </div> + + {{ partial "scripts.html" . }} +</footer>
\ No newline at end of file |