aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/layouts/partials/footer.html
blob: b2b27bc441b4628a4c2a0cd0a02a92636b652305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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>