diff --git a/src/components/IotHub/CategoryFaq.astro b/src/components/IotHub/CategoryFaq.astro index 670afe7cc..2aa2cdaee 100644 --- a/src/components/IotHub/CategoryFaq.astro +++ b/src/components/IotHub/CategoryFaq.astro @@ -1,6 +1,5 @@ --- import FaqSection from '@components/Pricing/FaqSection.astro'; -import FaqJsonLd from '@components/IotHub/FaqJsonLd.astro'; import { getCategoryFaq } from '@data/iot-hub/sections'; import { IOT_HUB_STRINGS } from '@models/iot-hub'; @@ -14,10 +13,9 @@ const groups = getCategoryFaq(categorySlug); { groups && ( -
+

{IOT_HUB_STRINGS.faqHeading}

- - +
) } @@ -38,8 +36,3 @@ const groups = getCategoryFaq(categorySlug); @include iot-hub-section-title; } - - diff --git a/src/components/IotHub/FaqJsonLd.astro b/src/components/IotHub/FaqJsonLd.astro deleted file mode 100644 index c72c620e2..000000000 --- a/src/components/IotHub/FaqJsonLd.astro +++ /dev/null @@ -1,32 +0,0 @@ ---- -import type { FaqGroup } from '@models/iot-hub-sections'; - -interface Props { - groups: FaqGroup[]; -} - -const { groups } = Astro.props; - -const stripHtml = (s: string) => - s - .replace(/<[^>]+>/g, '') - .replace(/\s+/g, ' ') - .trim(); - -const jsonLd = { - '@context': 'https://schema.org', - '@type': 'FAQPage', - mainEntity: groups.flatMap((group) => - group.items.map((item) => ({ - '@type': 'Question', - name: item.question, - acceptedAnswer: { - '@type': 'Answer', - text: stripHtml(item.answer), - }, - })) - ), -}; ---- - - +