added safeurl to many links to allow for tel: links

This commit is contained in:
Gabriele Musco 2021-07-06 23:23:09 +02:00
parent f9c98de489
commit 6bb8b3952d
No known key found for this signature in database
GPG Key ID: 8539FD3454380B83
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@
</a></li>
{{ end }}
{{ range .Site.Menus.main }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
<li><a href="{{ .URL | safeURL }}">{{ .Name }}</a></li>
{{ end }}
{{ if (.Site.Params.showTags | default true) }}
<li><a href="/tags">Tags</a></li>

View File

@ -1,7 +1,7 @@
<a
target="_blank"
class="nerdlink"
href="{{ .URL }}">
href="{{ .URL | safeURL }}">
{{ $icon := index site.Data.supported_icons (lower .Identifier) | safeHTML }}
{{ if $icon }}
{{ $icon | safeHTML }}

View File

@ -29,7 +29,7 @@
<ul>
{{ range .Site.Data.jumbotron.links }}
<li>
<a class="{{ if .huge }}huge{{ end }}" href="{{ .link }}">
<a class="{{ if .huge }}huge{{ end }}" href="{{ .link | safeURL }}">
{{ .title }}
</a>
</li>