35 lines
803 B
HTML
35 lines
803 B
HTML
<script type="application/ld+json">
|
|
{
|
|
"@context": "http://schema.org",
|
|
"@type": "WebPage",
|
|
"url" : {{ .Permalink }},
|
|
"name": {{ .Title }},
|
|
{{ with $.Param "description" -}}
|
|
"description": {{ . }},
|
|
{{ end -}}
|
|
{{ with $.Param "image" -}}
|
|
"image" : {{ . | absURL }},
|
|
{{ end -}}
|
|
{{ with $.Param "author" -}}
|
|
"author": {
|
|
"@type": "Person",
|
|
"name": {{ . }}
|
|
},
|
|
{{ end -}}
|
|
"mainEntityOfPage": {
|
|
"@type": "WebPage",
|
|
"@id": {{ .Site.BaseURL }}
|
|
},
|
|
"publisher": {
|
|
"@type": "Organization",
|
|
"name": {{ .Site.Title }},
|
|
"url": {{ .Site.BaseURL }},
|
|
{{ with $.Param "icon" -}}
|
|
"logo" : {
|
|
"@type": "ImageObject",
|
|
"url": {{ . | absURL }}
|
|
}
|
|
{{ end -}}
|
|
}
|
|
}
|
|
</script>
|