Fix link to email address (#8)

See https://github.com/hossainemruz/toha/issues/7
This commit is contained in:
Jean-Baptiste Le Duigou 2020-06-26 00:54:49 +02:00 committed by GitHub
parent 5517dae23a
commit fb7b04dc93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,11 @@
<ul class="social-link d-flex">
{{ range .Site.Data.about.socialLinks }}
<li>
<a href="{{ .url }}" target="/"><i class="{{ .icon }}"></i></a>
{{ if eq .name "Email" }}
<a href="mailto:{{ .url }}" target="/"><i class="{{ .icon }}"></i></a>
{{ else }}
<a href="{{ .url }}" target="/"><i class="{{ .icon }}"></i></a>
{{ end }}
</li>
{{ end }}
</ul>