{{- 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 }}
