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
---
import { differenceInYears } from 'date-fns';
export const numberOfYears = differenceInYears(new Date(), new Date(2007, 0, 1));
import { numberOfYears } from '~/utils';
<div class="mb-4 w-32">
<img src="/images/social-avatar.jpg" alt="Picture of Oliver" class="rounded-full border border-gray" />