Pre-launch: First articles
This commit is contained in:
21
layouts/partials/schema/faq.html
Normal file
21
layouts/partials/schema/faq.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- with .Params.faq }}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "FAQPage",
|
||||
"mainEntity": [
|
||||
{{- $len := len . -}}
|
||||
{{- range $i, $item := . }}
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": {{ $item.question | jsonify }},
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": {{ $item.answer | jsonify }}
|
||||
}
|
||||
}{{ if lt (add $i 1) $len }},{{ end }}
|
||||
{{- end }}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user