Add video and guides on homepage
This commit is contained in:
14
lib/author.ts
Normal file
14
lib/author.ts
Normal 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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user