Skip to content

Commit

Permalink
Merge pull request #335 from seasalt-ai/fix-incorrect-value-type
Browse files Browse the repository at this point in the history
fix: Incorrect value type error
  • Loading branch information
amy17519 authored Oct 24, 2024
2 parents 12c0801 + 31782db commit 71dba82
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 71dba82

Please sign in to comment.