Files
landing_page/qdrant-landing/assets/schema/article-schema.json
T
trean 8acc0ade70 Fix seo schema (#727)
* adding seo schema from json file

* range trought schema files list

* article json-ld, all schemas from files

* fixes

* fixes

* seo schema fixes

* fix
2024-04-03 00:00:56 +02:00

25 lines
1.1 KiB
JSON

{
"@type": "Article",
"@id": "{{- .Permalink -}}#article",
"name": "{{- .Params.title | htmlEscape -}}",
"headline": "{{- .Params.title | htmlEscape -}}",
"image": [
"{{- if .Params.social_preview_image -}}{{- .Params.social_preview_image | absURL -}}{{- end -}}"
],
"url": "{{- .Permalink -}}",
"description": {{ $description := printf "%s" (.Params.description | plainify | replaceRE "(\n)" "" | replaceRE "[^\\w\\s:\\[\\]{}\"]" "" | htmlEscape ) -}}"{{- $description -}}",
"abstract": {{- $abstract := .Summary -}}{{- if .Params.description -}}{{- $abstract = .Params.description -}}{{- end -}}{{ $processedAbstract := printf "%s" ($abstract | plainify | replaceRE "(\n)" "" | replaceRE "[^\\w\\s:\\[\\]{}\"]" "" | htmlEscape ) -}}"{{- $processedAbstract -}}",
"wordCount": "{{- .WordCount -}}",
"datePublished": "{{ .Date }}" ,
"dateModified": "{{ .Date }}",{{- if .Params.author -}}
"author": {
"@type": "Person",
"name": "{{- .Params.author | htmlEscape -}}"
}{{- else -}}
"author": {
"@type": "Organization",
"name": "Qdrant",
"url": "https://qdrant.tech/"
}{{- end -}}
}