docs: update speaker bio

This commit is contained in:
Oliver Davies 2023-05-04 07:45:28 +01:00
parent 3cb17cac8c
commit c53039be48
3 changed files with 9 additions and 12 deletions

View file

@ -3,9 +3,7 @@ layout: ~/layouts/PageLayout.astro
title: Oliver Davies - Software Developer and Drupal Expert title: Oliver Davies - Software Developer and Drupal Expert
--- ---
import { differenceInYears } from 'date-fns'; import { numberOfYears } from '~/utils';
export const numberOfYears = differenceInYears(new Date(), new Date(2007, 0, 1));
<div class="mb-4 w-32"> <div class="mb-4 w-32">
<img src="/images/social-avatar.jpg" alt="Picture of Oliver" class="rounded-full border border-gray" /> <img src="/images/social-avatar.jpg" alt="Picture of Oliver" class="rounded-full border border-gray" />

View file

@ -3,18 +3,13 @@ layout: ~/layouts/PageLayout.astro
title: Speaker Information title: Speaker Information
--- ---
import { numberOfYears } from '~/utils';
## Bio ## Bio
<a href="https://www.oliverdavies.uk">Oliver Davies</a> (<a href="https://twitter.com/opdavies"> Oliver is a Software Developer and Drupal Expert with {numberOfYears} years of experience. He currently works at Transport for Wales.
@opdavies
</a>) has been building websites since 2007, and speaking at meetups and conferences
since 2012. He is a Full Stack Developer and a certified Drupal expert who also has
experience developing with Symfony, Laravel, Sculpin and Vue.js, as well as with
DevOps and systems administration.
He is a Lead Software Developer at <a href="https://tfw.wales/?%20utm_source=oliverdavies.uk&utm_medium=speaker-information">Transport for Wales</a>, a Drupal core contributor and mentor, and an open source and contribution advocate. As well as consulting on large Drupal projects, Oliver helps Drupal Developers learn automated testing and test-driven development via a free email course and paid workshops.
He regularly blogs and gives talks on various topics, maintains and contributes to various open source projects, and organises the PHP South Wales user group.
## Photos ## Photos

View file

@ -1,5 +1,9 @@
import { differenceInYears } from 'date-fns';
export function getSlugFromFile(file: string): string { export function getSlugFromFile(file: string): string {
const parts = file.replace('.md', '').split('/') const parts = file.replace('.md', '').split('/')
return parts[parts.length - 1] return parts[parts.length - 1]
} }
export const numberOfYears = differenceInYears(new Date(), new Date(2007, 0, 1));