diff --git a/website/src/pages/talks/index.astro b/website/src/pages/talks/index.astro index 719c7b25..1305bb30 100644 --- a/website/src/pages/talks/index.astro +++ b/website/src/pages/talks/index.astro @@ -1,8 +1,15 @@ --- +import _ from 'lodash' import PageLayout from '../../layouts/PageLayout.astro' const talks = await Astro.glob("../../talks/*.md") +const talkCount = _(talks) + .map((talk) => talk.frontmatter.events) + .flatten() + .value() + .length + const sortedTalks = talks .map(talk => { const parts = talk.file.replace('.md', '').split('/') @@ -22,7 +29,7 @@ const sortedTalks = talks --- -

Starting with my first talk in September 2012, I have given 85 presentations and workshops at various conferences and meetups, in-person and remotely, on topics including PHP, Drupal, automated testing, Git, CSS, and systems administration.

+

Starting with my first talk in September 2012, I have given {talkCount} presentations and workshops at various conferences and meetups, in-person and remotely, on topics including PHP, Drupal, automated testing, Git, CSS, and systems administration.

{sortedTalks.map((talk) => (