Added | safeURL for contact list iteration.

using `tel:` without `safeURL` will replace it with `#ZgotmplZ` in url.

Please see the below link for more details.
https://gohugo.io/functions/safeurl/#prose
This commit is contained in:
Umar Hussain 2019-11-15 00:54:22 +01:00 committed by GitHub
parent 7c61b7565b
commit 92f57b4430
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
<div class="resume-contact col-12 col-md-6 col-lg-4 col-xl-3">
<ul class="list-unstyled mb-0">
{{ range .Site.Params.contact.list }}
<li class="mb-2"><i class="{{ .style }} {{ .icon }} fa-fw fa-lg mr-2 "></i><a class="resume-link" href="{{ .url }}">{{ .text }}</a></li>
<li class="mb-2"><i class="{{ .style }} {{ .icon }} fa-fw fa-lg mr-2 "></i><a class="resume-link" href="{{ .url | safeURL }}">{{ .text }}</a></li>
{{ end }}
<li class="mb-0"><i class="fas fa-map-marker-alt fa-fw fa-lg mr-2"></i>{{ .Site.Params.contact.location }}</li>
</ul>