From 61bf918a0d4a3dbab18bc23033628f0a01ed0e39 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sun, 23 Jul 2023 10:32:18 +0200 Subject: [PATCH] socialIcons, fix: apply safeURL to make all URI schemes work (#1266) --- layouts/partials/social_icons.html | 2 +- layouts/partials/templates/schema_json.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/social_icons.html b/layouts/partials/social_icons.html index 3f8d6a35..876b77c6 100644 --- a/layouts/partials/social_icons.html +++ b/layouts/partials/social_icons.html @@ -1,6 +1,6 @@
{{- range . }} - + {{ partial "svg.html" . }} {{- end }} diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index 74abbb5e..435cba51 100644 --- a/layouts/partials/templates/schema_json.html +++ b/layouts/partials/templates/schema_json.html @@ -11,7 +11,7 @@ {{- if site.Params.schema.sameAs }} {{ range $i, $e := site.Params.schema.sameAs }}{{ if $i }}, {{ end }}{{ trim $e " " }}{{ end }} {{- else}} - {{ range $i, $e := site.Params.SocialIcons }}{{ if $i }}, {{ end }}{{ trim $e.url " " }}{{ end }} + {{ range $i, $e := site.Params.SocialIcons }}{{ if $i }}, {{ end }}{{ trim $e.url " " | safeURL }}{{ end }} {{- end}} ] }