Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_header_links.html « partials « layouts - gitlab.com/mertbakir/resume-a4.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 572bb6cd20a509f1cf0d99920c2599d12bd5f6d3 (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
{{ with .Data.features.about }}
    {{ $sep := $.Separator | default "<br>" }}
    {{- if $.Header.contact -}}
        <span class="contact">
            {{- with .phone -}}
                {{- if $.useFontAwesome }}<i class="fas fa-tty"></i> {{ end -}}
                <!-- fas fa-phone-alt -->
                {{- . -}}
            {{- end -}}
            {{- if and .phone .email }} {{- $sep | safeHTML -}} {{ end -}}
            {{- with .email -}}
                <a href="mailto:{{- . -}}" class="no-external-icon">
                    {{- if $.useFontAwesome }}<i class="fas fa-envelope"></i> {{ end -}}
                    {{- . -}}
                </a>
            {{- end -}}
        </span>
    {{- end -}}

    {{- if $.Header.links -}}
        <span class="contact-links">
            {{- $last := sub (len .links) 1 -}}
            {{- range $i, $e := .links -}}
            <a href="{{ $e.url }}" class="no-external-icon">
                {{- if and $e.icon $.useFontAwesome }}<i class="{{ $e.icon }}"></i> {{ end -}}
                {{- $e.title -}}
            </a>
            {{- if ne $i $last }}  {{- $sep | safeHTML -}} {{ end -}}
            {{- end -}}
        </span>
    {{- end -}}

{{- end -}}