diff --git a/src/components/Button.astro b/src/components/Button.astro index beb792805..968f2519a 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -7,7 +7,10 @@ interface Props { const { href, text } = Astro.props as Props; --- -
+
names.includes(id)); +const testimonials = await getCollection("testimonial", ({ id }) => + names.includes(id) +); const sortedTestimonials = _(names) - .flatMap(name => testimonials.filter(testimonial => testimonial.id === name)) + .flatMap((name) => + testimonials.filter((testimonial) => testimonial.id === name) + ) .value(); --- -{testimonials && ( -

{title ?? 'What others have said'}

+{ + testimonials && ( +
+

+ {title ?? "What others have said"} +

-
+
+ ) +}