diff --git a/nuxt/components/ActionButtons.vue b/nuxt/components/ActionButtons.vue new file mode 100644 index 0000000000..0c44c4e2e7 --- /dev/null +++ b/nuxt/components/ActionButtons.vue @@ -0,0 +1,43 @@ + + + diff --git a/nuxt/components/BlogFaq.vue b/nuxt/components/BlogFaq.vue index 1011af4c5d..d12b330e4d 100644 --- a/nuxt/components/BlogFaq.vue +++ b/nuxt/components/BlogFaq.vue @@ -4,20 +4,11 @@ // paragraphs, which the 11ty pages expressed with raw and

tags under `| safe`. import { isListBlock, renderFaqAnswer } from '../lib/faq-answer.mjs' -withDefaults(defineProps<{ +// Inside an article it sits under the post's own heading; on a marketing page +// supplies the heading, the band and the FAQPage structured data. +defineProps<{ faq: Array<{ question: string, answer: string }> - /** - * How much room the block takes above the first question. - * - * faq.njk had exactly these two modes: `post` inside an article, `page` everywhere a - * marketing page pairs it with its own

. Those pages set a negative bottom margin - * on that heading, which only reads correctly against the taller spacing, so a page - * rendering this in post mode pulls its first question up over its own heading. - */ - variant?: 'post' | 'page' -}>(), { - variant: 'post', -}) +}>() const openIndex = ref(null) function toggle(i: number) { @@ -26,8 +17,8 @@ function toggle(i: number) {