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

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