Purpose#
FaqStructuredData emits Schema.org FAQPage JSON-LD for questions shown by an FAQ component.Where it's rendered#
Components/Faq/Default.liquid renders the reusable through the FaqStructuredDataReusable slot, passing the placement's groups.groups: the current placement's localized, paginated groups, containing faqs[].items[] with question and sanitized HTML answer.
Template behavior (Liquid + Alpine)#
The reusable emits one FAQPage script with Question and acceptedAnswer entries for complete question-and-answer pairs. It renders nothing when there are no complete pairs. Each value is JSON-serialized and answers retain their HTML.JavaScript#
Reusables/FaqStructuredData/Default.js reserves the faqstructureddatareusabledefault global; the schema is server-rendered.Dependencies#
Reusables/FaqStructuredData/Default.liquid
Reusables/FaqStructuredData/Default.js
Reusables/FaqStructuredData/Default.json
Modified at 2026-11-18 07:31:55