Add Email social

This commit is contained in:
vimux 2018-05-28 11:38:52 +03:00
parent d9e9863721
commit 6e72956f06
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34
3 changed files with 7 additions and 0 deletions

View file

@ -41,6 +41,7 @@ cardsPerRow = 2 # Possible values: 1, 2, 3
#mathjaxConfig: "TeX-AMS-MML_HTMLorMML" # Specify MathJax config. Optional #mathjaxConfig: "TeX-AMS-MML_HTMLorMML" # Specify MathJax config. Optional
[Params.Social] [Params.Social]
#email = "example@example.com"
#facebook = "username" #facebook = "username"
#twitter = "username" #twitter = "username"
#telegram = "username" #telegram = "username"

View file

@ -1,5 +1,10 @@
{{ if .Site.Params.social }} {{ if .Site.Params.social }}
<div class="footer__social social"> <div class="footer__social social">
{{- with .Param "social.email" }}
<a class="social__link" href="mailto:{{ . }}">
{{ partial "svg/email.svg" . }}
</a>
{{- end }}
{{- with .Param "social.facebook" }} {{- with .Param "social.facebook" }}
<a class="social__link" target="_blank" rel="noopener noreferrer" href="https://www.facebook.com/{{ . }}"> <a class="social__link" target="_blank" rel="noopener noreferrer" href="https://www.facebook.com/{{ . }}">
{{ partial "svg/facebook.svg" . }} {{ partial "svg/facebook.svg" . }}

View file

@ -0,0 +1 @@
<svg class="social__icon" aria-label="Email" role="img" width="32" height="32" viewBox="0 0 512 512"><path d="M299 268l124 106c-4 4-10 7-17 7H106c-7 0-13-3-17-7l124-106 43 38 43-38zm-43 13L89 138c4-4 10-7 17-7h300c7 0 13 3 17 7L256 281zm54-23l121-105v208L310 258zM81 153l121 105L81 361V153z"/></svg>

After

Width:  |  Height:  |  Size: 299 B