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

github.com/SteveLane/hugo-icon.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdriaan Knapen <hi@aknapen.nl>2019-02-17 19:55:37 +0300
committerAdriaan Knapen <hi@aknapen.nl>2019-02-17 19:55:37 +0300
commit4ab73db16bc9302e0699c8dc062031d8aa368242 (patch)
tree8aacbb850dae48780604184fe32ecf2e42a584c4
parent48d756ac25a50529f14fcc59b007783e10eebc32 (diff)
new: add social buttons at the team page for email, phone and whatsapp
-rw-r--r--exampleSite/config.toml12
-rwxr-xr-xlayouts/partials/team.html9
2 files changed, 21 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 1fa9abc..0de9154 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -154,45 +154,57 @@ title = "My Awesome Title"
position = "Chief legend"
description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident."
img = "images/person1.jpg"
+ email = "#"
+ telephone = "#"
facebook = "#"
twitter = "#"
dribbble = "#"
instagram = "#"
github = "#"
linkedin = "#"
+ whatsapp = "#"
[[params.team.item]]
name = "Alice Doe"
position = "Chief overlord"
description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident."
img = "images/person2.jpg"
+ email = "#"
+ telephone = "#"
facebook = "#"
twitter = "#"
dribbble = "#"
instagram = "#"
github = "#"
+ whatsapp = "#"
[[params.team.item]]
name = "John Doe"
position = "Chief haranguer"
description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident."
img = "images/person3.jpg"
+ email = "#"
+ telephone = "#"
facebook = "#"
twitter = "#"
dribbble = "#"
instagram = "#"
github = "#"
+ whatsapp = "#"
# [[params.team.item]]
# name = "Jason Doe"
# position = "Chief haranguer"
# description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident."
# img = "images/person3.jpg"
+ # email = "#"
+ # telephone = "#"
# facebook = "#"
# twitter = "#"
# dribbble = "#"
# instagram = "#"
# github = "#"
+ # whatsapp = "#"
# Contact section
[params.contact]
diff --git a/layouts/partials/team.html b/layouts/partials/team.html
index 3f8e232..c6d6d01 100755
--- a/layouts/partials/team.html
+++ b/layouts/partials/team.html
@@ -13,6 +13,12 @@
<h4>{{ .position }}</h4>
<p>{{ .description | markdownify }}</p>
<ul class="social">
+ {{ if isset . "telephone" }}
+ <li><a href="tel:{{ .telephone }}"><i class="icon-phone"></i></a></li>
+ {{ end }}
+ {{ if isset . "email" }}
+ <li><a href="mailto:{{ .email }}"><i class="icon-envelope"></i></a></li>
+ {{ end }}
{{ if isset . "facebook" }}
<li><a href="{{ .facebook }}"><i class="icon-facebook"></i></a></li>
{{ end }}
@@ -31,6 +37,9 @@
{{ if isset . "linkedin" }}
<li><a href="{{ .linkedin }}"><i class="icon-linkedin"></i></a></li>
{{ end }}
+ {{ if isset . "whatsapp" }}
+ <li><a href="{{ .whatsapp }}"><i class="icon-whatsapp"></i></a></li>
+ {{ end }}
</ul>
</div>
</div>