42 lines
1.0 KiB
HTML
42 lines
1.0 KiB
HTML
{{- 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 }}
|
|
|
|
{{- with .Params.application }}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "WebApplication",
|
|
{{- range . }}
|
|
"name": {{ .name | jsonify }},
|
|
"operatingSystem": {{ .operatingSystem | jsonify }},
|
|
"applicationCategory": {{ .applicationCategory | jsonify }},
|
|
"description": {{ .description | jsonify }},
|
|
"offers": {
|
|
"@type": "Offer",
|
|
"price": {{ .offers.price | jsonify }},
|
|
"priceCurrency": {{ .offers.priceCurrency | jsonify }}
|
|
},
|
|
"featureList": {{ .featureList | jsonify }}
|
|
{{- end }}
|
|
}
|
|
</script>
|
|
{{- end }} |