diff --git a/src/components/DailyEmailForm.astro b/src/components/DailyEmailForm.astro index da65e83d..b311fd70 100644 --- a/src/components/DailyEmailForm.astro +++ b/src/components/DailyEmailForm.astro @@ -637,3 +637,5 @@ const { intro } = Astro.props; + + diff --git a/src/components/Testimonials.astro b/src/components/Testimonials.astro index 9275b80b..f13152c4 100644 --- a/src/components/Testimonials.astro +++ b/src/components/Testimonials.astro @@ -5,6 +5,7 @@ import _ from "lodash"; interface Props { names: string[]; title?: string; + titleClasses?: string[]; } const defaultNames = [ @@ -27,7 +28,7 @@ const defaultNames = [ 'anonymous', ]; -const { title } = Astro.props as Props; +const { title, titleClasses } = Astro.props as Props; const names = _(Astro.props.names || defaultNames); const testimonials = await getCollection('testimonial', ({ id }) => names.includes(id)); @@ -38,7 +39,7 @@ const sortedTestimonials = _(names) --- {testimonials && ( -

{title ?? 'What others have said'}

+

{title ?? 'What others have said'}

{_(sortedTestimonials).map(({ data: { image, name, tagline, text, url } }) => ( diff --git a/src/pages/index.mdx b/src/pages/index.mdx index 607bb3d9..c413003a 100644 --- a/src/pages/index.mdx +++ b/src/pages/index.mdx @@ -5,6 +5,7 @@ isFront: true --- import DailyEmailForm from '~/components/DailyEmailForm.astro'; +import Testimonials from '~/components/Testimonials.astro'; import { numberOfYears } from '~/utils';
@@ -40,7 +41,11 @@ Book a [1-on-1 consultation call][call] or an [online pair programming session][ Register for my email list and get daily emails about Drupal, PHP and software development. - + +
+ +
+
[call]: /call