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

contact.html « sections « partials « layouts - github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8eaf3e2cf7ecdea3bc83bb28f104bba5141b27f4 (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
{{ "<!-- CONTACT -->" | safeHTML }}
{{ with .Site.Data.contact }}
    <section class="section" id="contact"
            {{ with .background_image }}
                style="background-image: url('{{ (printf "images/%s" .) | relURL }}');"
            {{ end }}
        >
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-4 col-md-offset-8">
                    {{ with .title }}
                        <h2 class="section-heading text-tertiary">{{ . }}</h2>
                        <hr class="primary">
                    {{ end }}
                </div>
            </div>

            <div class="row">
                <div class="col-md-4 col-md-offset-1 text-center">
                    <div class="profile bg-secondary">
                        {{ with .photo }}
                            <div class="portrait" title="photo: {{ . }}" style="background-image: url('{{ (printf "images/%s" .) | relURL }}');"></div>
                        {{ end }}

                        {{ with .description }}
                            <div class="text-primary">
                                <p>{{ . | markdownify }}</p>
                            </div>
                        {{ end }}

                        <div class="email-link" itemprop="email">
                            {{ with .email }}
                                {{ if .link }}
                                <a href="mailto:{{ .address }}">
                                {{ end }}
                                    {{ if .icon }}
                                        {{ $pack := or .icon_pack "fa" }}
                                        <i class="{{ $pack }} {{ .icon }}" aria-hidden="true">
                                    {{ end }}
                                    {{ .address }}
                                    </i>
                                {{ if .link }}
                                </a>
                                {{ end }}
                            {{ end }}
                        </div>

                        <ul class="icons-list" aria-hidden="true">
                            {{ range .social }}
                                {{ $pack := or .icon_pack "fa" }}
                                <li>
                                    <a itemprop="sameAs" href="{{ .link | safeURL }}" target="_blank" rel="noopener">
                                        <i class="{{ $pack }} {{ .icon }} icon-x2 wow bounceIn"></i>
                                    </a>
                                </li>
                            {{ end }}
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>
{{ end }}