diff --git a/src/components/Testimonials.astro b/src/components/Testimonials.astro index 3ebdba22..efe0da46 100644 --- a/src/components/Testimonials.astro +++ b/src/components/Testimonials.astro @@ -7,23 +7,29 @@ interface Props { } const defaultNames = [ - 'adam-cuddihy', - 'brian-hartwell', - 'anonymous', - 'huw-davies', 'joe-howell', 'michael-itkoff', 'mick-felton', + 'duncan-davidson', + 'adam-cuddihy', + 'huw-davies', 'scott-euser', + 'brian-hartwell', + 'alan-hatch', + 'holly-ross', + 'josh-mitchell', + 'brian-healy', + 'chris-jarvis', + 'daniel-easterbrook', + 'anonymous', ]; const names = _(Astro.props.names || defaultNames); const testimonials = await getCollection('testimonial', ({ id }) => names.includes(id)); -const sortedTestimonials = _(testimonials) - .sort((a, b) => new Date(a.date) < new Date(b.date)) - .reverse() +const sortedTestimonials = _(names) + .flatMap(name => testimonials.filter(testimonial => testimonial.id === name)) .value(); --- diff --git a/src/pages/call.mdx b/src/pages/call.mdx index fcf01947..4c27f9a4 100644 --- a/src/pages/call.mdx +++ b/src/pages/call.mdx @@ -4,8 +4,8 @@ title: Book a 1-on-1 consulting call link: https://savvycal.com/opdavies/consulting-call price: £350 testimonials: - - michael-itkoff2 - tom-evans + - michael-itkoff2 --- import Button from "~/components/Button.astro"; diff --git a/src/pages/drupal-upgrade.mdx b/src/pages/drupal-upgrade.mdx index 4d75ef17..96dfbdff 100644 --- a/src/pages/drupal-upgrade.mdx +++ b/src/pages/drupal-upgrade.mdx @@ -53,7 +53,7 @@ An upgrade roadmap is a personalised audit of your Drupal website and includes d {/* Social proof */} - + {/* Overcome objections */} diff --git a/src/pages/testimonials.mdx b/src/pages/testimonials.mdx index 8e63062a..fbdc7cdc 100644 --- a/src/pages/testimonials.mdx +++ b/src/pages/testimonials.mdx @@ -5,27 +5,4 @@ title: Testimonials import Testimonials from "~/components/Testimonials.astro"; - +