1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 16:21:19 -04:00

fix JSON schema @id

This commit is contained in:
2021-05-16 10:36:17 -04:00
parent 4a13d0d374
commit b182ed86d2
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
"description": {{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}, "description": {{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }},
"wordCount": "{{ .WordCount }}", "wordCount": "{{ .WordCount }}",
"author": { "author": {
"@id": {{ path.Join .Site.BaseURL "#author" }} "@id": {{ print (absURL "/") "#author" }}
}, },
"publisher": { "publisher": {
"@type": "Organization", "@type": "Organization",

View File

@@ -3,7 +3,7 @@
{ {
"@context": "http://schema.org", "@context": "http://schema.org",
"@type": "Person", "@type": "Person",
"@id": {{ path.Join $.Site.BaseURL "#author" }}, "@id": {{ print (absURL "/") "#author" }},
"name": {{ .name }}, "name": {{ .name }},
"url": {{ $.Site.BaseURL }}, "url": {{ $.Site.BaseURL }},
"description": {{ $.Site.Params.description }},{{ with $.Scratch.Get "authorImage" }} "description": {{ $.Site.Params.description }},{{ with $.Scratch.Get "authorImage" }}