mirror of
https://github.com/Vimux/Binario.git
synced 2024-12-22 12:39:07 +00:00
Add Email social
This commit is contained in:
parent
d9e9863721
commit
6e72956f06
3 changed files with 7 additions and 0 deletions
|
@ -41,6 +41,7 @@ cardsPerRow = 2 # Possible values: 1, 2, 3
|
|||
#mathjaxConfig: "TeX-AMS-MML_HTMLorMML" # Specify MathJax config. Optional
|
||||
|
||||
[Params.Social]
|
||||
#email = "example@example.com"
|
||||
#facebook = "username"
|
||||
#twitter = "username"
|
||||
#telegram = "username"
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
{{ if .Site.Params.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" }}
|
||||
<a class="social__link" target="_blank" rel="noopener noreferrer" href="https://www.facebook.com/{{ . }}">
|
||||
{{ partial "svg/facebook.svg" . }}
|
||||
|
|
1
layouts/partials/svg/email.svg
Normal file
1
layouts/partials/svg/email.svg
Normal 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 |
Loading…
Reference in a new issue