Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cowboysmall-tools/hugo-devresume-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUmar Hussain <umarhussain.work@gmail.com>2019-11-15 02:54:22 +0300
committerGitHub <noreply@github.com>2019-11-15 02:54:22 +0300
commit92f57b4430110105cb6e45232b5321cedf148938 (patch)
treea9164c7b9b52fb6065797a41bfa12dfb150dec6c
parent7c61b7565b2785f7ffbd93dc0e3b25a3401216d9 (diff)
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
-rw-r--r--layouts/partials/contact.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html
index 2a13661..dfe03f9 100644
--- a/layouts/partials/contact.html
+++ b/layouts/partials/contact.html
@@ -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>