diff --git a/src/components/Testimonials.astro b/src/components/Testimonials.astro index d3a06c6b..9275b80b 100644 --- a/src/components/Testimonials.astro +++ b/src/components/Testimonials.astro @@ -4,6 +4,7 @@ import _ from "lodash"; interface Props { names: string[]; + title?: string; } const defaultNames = [ @@ -26,6 +27,7 @@ const defaultNames = [ 'anonymous', ]; +const { title } = Astro.props as Props; const names = _(Astro.props.names || defaultNames); const testimonials = await getCollection('testimonial', ({ id }) => names.includes(id)); @@ -36,7 +38,7 @@ const sortedTestimonials = _(names) --- {testimonials && ( -