Merge pull request #4 from umarhussain15/patch-1

Added `| safeURL` for contact list iteration.
This commit is contained in:
Jerry Kiely 2019-11-14 23:59:49 +00:00 committed by GitHub
commit 73727c0d48
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>