From 14c524539b9f926aa6abdb66f534058fee3e3903 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 13 Dec 2020 16:56:41 +0530 Subject: [PATCH] Remove whitespace around urls wherever applicable - corrects mistyped urls with leading or trailing whitespaces --- layouts/partials/index_profile.html | 2 +- layouts/partials/social_icons.html | 2 +- layouts/partials/templates/schema_json.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index bee94fbc..9849bbdc 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -10,7 +10,7 @@ {{- with .buttons }}
{{- range . -}} - + {{ .name }} {{- end -}} diff --git a/layouts/partials/social_icons.html b/layouts/partials/social_icons.html index 7bb9c143..5729fe52 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 f04a0bfa..5cf407ec 100644 --- a/layouts/partials/templates/schema_json.html +++ b/layouts/partials/templates/schema_json.html @@ -9,9 +9,9 @@ "thumbnailUrl": {{ .Site.Params.assets.favicon | default "favicon.ico" | absURL }}, "sameAs": [ {{- if .Site.Params.schema.sameAs }} - {{ range $i, $e := .Site.Params.schema.sameAs }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} + {{ range $i, $e := .Site.Params.schema.sameAs }}{{ if $i }}, {{ end }}{{ trim $e " " }}{{ end }} {{- else}} - {{ range $i, $e := .Site.Params.SocialIcons }}{{ if $i }}, {{ end }}{{ $e.url }}{{ end }} + {{ range $i, $e := .Site.Params.SocialIcons }}{{ if $i }}, {{ end }}{{ trim $e.url " " }}{{ end }} {{- end}} ] }