docs: update speaker bio
This commit is contained in:
parent
3cb17cac8c
commit
c53039be48
3 changed files with 9 additions and 12 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue