From 6bb8b3952db0dfb9704d758ea0bb9d5bf1c0ac71 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Tue, 6 Jul 2021 23:23:09 +0200 Subject: [PATCH] added safeurl to many links to allow for tel: links --- layouts/partials/header.html | 2 +- layouts/partials/iconlink.html | 2 +- layouts/partials/jumbotron.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 79050bc..6f71275 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -32,7 +32,7 @@ {{ end }} {{ range .Site.Menus.main }} -
  • {{ .Name }}
  • +
  • {{ .Name }}
  • {{ end }} {{ if (.Site.Params.showTags | default true) }}
  • Tags
  • diff --git a/layouts/partials/iconlink.html b/layouts/partials/iconlink.html index b97dae0..c4b7d1c 100644 --- a/layouts/partials/iconlink.html +++ b/layouts/partials/iconlink.html @@ -1,7 +1,7 @@ + href="{{ .URL | safeURL }}"> {{ $icon := index site.Data.supported_icons (lower .Identifier) | safeHTML }} {{ if $icon }} {{ $icon | safeHTML }} diff --git a/layouts/partials/jumbotron.html b/layouts/partials/jumbotron.html index 345eb4e..7d5704d 100644 --- a/layouts/partials/jumbotron.html +++ b/layouts/partials/jumbotron.html @@ -29,7 +29,7 @@