Add video and guides on homepage

This commit is contained in:
Kamran Ahmed
2021-08-29 18:57:23 +02:00
parent 0e90d53b8e
commit 74ef38cdb6
6 changed files with 222 additions and 54 deletions

14
lib/author.ts Normal file
View File

@ -0,0 +1,14 @@
import authors from '../content/authors.json';
export type AuthorType = {
username: string;
name: string;
twitter: string;
picture: string;
bio: string;
}
export function findAuthorByUsername(username: string): AuthorType | undefined {
return (authors as AuthorType[]).find(author => author.username === username);
}