Skip to content

Commit

Permalink
fix: Incorrect value type error
Browse files Browse the repository at this point in the history
  • Loading branch information
itIsJim committed Oct 24, 2024
1 parent 12c0801 commit 31782db
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions layouts/partials/head/structured-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" -}}
Expand Down

0 comments on commit 31782db

Please sign in to comment.