added safeurl to many links to allow for tel: links
This commit is contained in:
parent
f9c98de489
commit
6bb8b3952d
|
@ -32,7 +32,7 @@
|
||||||
</a></li>
|
</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
<li><a href="{{ .URL | safeURL }}">{{ .Name }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if (.Site.Params.showTags | default true) }}
|
{{ if (.Site.Params.showTags | default true) }}
|
||||||
<li><a href="/tags">Tags</a></li>
|
<li><a href="/tags">Tags</a></li>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="nerdlink"
|
class="nerdlink"
|
||||||
href="{{ .URL }}">
|
href="{{ .URL | safeURL }}">
|
||||||
{{ $icon := index site.Data.supported_icons (lower .Identifier) | safeHTML }}
|
{{ $icon := index site.Data.supported_icons (lower .Identifier) | safeHTML }}
|
||||||
{{ if $icon }}
|
{{ if $icon }}
|
||||||
{{ $icon | safeHTML }}
|
{{ $icon | safeHTML }}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Site.Data.jumbotron.links }}
|
{{ range .Site.Data.jumbotron.links }}
|
||||||
<li>
|
<li>
|
||||||
<a class="{{ if .huge }}huge{{ end }}" href="{{ .link }}">
|
<a class="{{ if .huge }}huge{{ end }}" href="{{ .link | safeURL }}">
|
||||||
{{ .title }}
|
{{ .title }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue