VermontDepartmentOfHealth / covid-bot

A knowledge base & automated chatbot from the Vermont Department of Health with info for the COVID-19 response
https://vermontdepartmentofhealth.github.io/covid-bot/
MIT License
3 stars 2 forks source link

add structured data to FAQ site #60

Closed KyleMit closed 4 years ago

KyleMit commented 4 years ago

Add Google's Structured Data tags for FAQ data

faq example

Data should look something like this:

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": " What are the symptoms of COVID-19?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "People with COVID-19 have had a wide range of symptoms reported – ranging from mild symptoms to severe illness. Symptoms may appear 2 to 14 days after exposure to the virus. Not everyone infected with the COVID-19 virus has symptoms. People with these symptoms may have COVID-19:"
      }
    }, {
      "@type": "Question",
      "name": " Can I take ibuprofen for COVID-19 symptoms?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Some early news reports suggested that non-steroidal anti-inflammatory drugs (NSAIDs), such as ibuprofen, could worsen coronavirus disease. However, the Food and Drug Administration (FDA) has said it is not aware of any scientific evidence connecting the use of NSAIDs with worsening COVID-19 symptoms at this time. The FDA is investigating this issue further."
      }
    }
  ]
}