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" -}}