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

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/sections/contact.html')
-rw-r--r--layouts/partials/sections/contact.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/layouts/partials/sections/contact.html b/layouts/partials/sections/contact.html
new file mode 100644
index 0000000..8eaf3e2
--- /dev/null
+++ b/layouts/partials/sections/contact.html
@@ -0,0 +1,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 }}