From ac20b27cfe137b876ea49233ac4879f01718d6ca Mon Sep 17 00:00:00 2001 From: JP Simonnet <jean-philippe.simonnet@developpement-durable.gouv.fr> Date: Fri, 12 Apr 2024 15:42:52 +0200 Subject: [PATCH] ajout modele question reponse google --- .../modeles/dsfr_question.html | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 design_system_admin/modeles/dsfr_question.html diff --git a/design_system_admin/modeles/dsfr_question.html b/design_system_admin/modeles/dsfr_question.html new file mode 100644 index 0000000..872a467 --- /dev/null +++ b/design_system_admin/modeles/dsfr_question.html @@ -0,0 +1,23 @@ +<script type="application/ld+json"> + { + "@context": "https://schema.org", + "@type": "FAQPage", + "mainEntity": [{ + "@type": "Question", + "name": "#ENV{question}", + "acceptedAnswer": { + "@type": "Answer", + "text": "[(#ENV{reponse}|paragrapher|propre)]" + } + }] + } +</script> + +<div itemscope itemprop="mainEntity" itemtype="https://schema.org/Question"> + <h2 itemprop="name">#ENV{question}</h2> + <div itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer"> + <div itemprop="text"> + [(#ENV{reponse}|paragrapher|propre)] + </div> + </div> + </div> -- GitLab