From 31782db7ee0600d7effc368b2ba7f0f9896c8d89 Mon Sep 17 00:00:00 2001 From: Jim Date: Thu, 24 Oct 2024 16:18:46 +0200 Subject: [PATCH] fix: Incorrect value type error --- layouts/partials/head/structured-data.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/layouts/partials/head/structured-data.html b/layouts/partials/head/structured-data.html index 1f153a359..38308e2c7 100644 --- a/layouts/partials/head/structured-data.html +++ b/layouts/partials/head/structured-data.html @@ -31,14 +31,21 @@ "name": "{{ .Site.Params.schemaName }}", "url": {{ print $baseURL }}, "sameAs": [ + {{ $first := true -}} {{ with .Site.Params.schemaTwitter -}} - {{ . }} + {{ if not $first }},{{ end }} + "{{ . }}" + {{ $first = false -}} {{ end -}} {{ with .Site.Params.schemaLinkedIn -}} - , {{ . }} + {{ if not $first }},{{ end }} + "{{ . }}" + {{ $first = false -}} {{ end -}} {{ with .Site.Params.schemaGitHub -}} - , {{ . }} + {{ if not $first }},{{ end }} + "{{ . }}" + {{ $first = false -}} {{ end -}} ], {{ if eq .Site.Params.schemaType "Organization" -}}