File: /var/www/quadcode.com/src/lib/content/authors.ts
/**
* Author registry for local markdown posts.
* Add new authors here as needed. The key is the author slug
* used in markdown frontmatter (e.g. author: "quadcode-team").
*/
export interface LocalAuthor {
name: string;
description: string;
position: string;
slug: string;
totalPosts: number;
avatar: {
thumbnail: string;
medium: string;
mediumLarge: string;
large: string;
};
linkedin: string;
}
const authors: Record<string, LocalAuthor> = {
'quadcode-team': {
name: 'Quadcode Team',
description: 'The Quadcode editorial team covers fintech, trading technology, and brokerage solutions.',
position: 'Editorial Team',
slug: 'quadcode-team',
totalPosts: 0,
avatar: {
thumbnail: '',
medium: '',
mediumLarge: '',
large: '',
},
linkedin: 'https://www.linkedin.com/company/quadcode/',
},
};
export function getAuthor(slug: string): LocalAuthor {
return (
authors[slug] ?? {
name: slug,
description: '',
position: '',
slug,
totalPosts: 0,
avatar: { thumbnail: '', medium: '', mediumLarge: '', large: '' },
linkedin: '',
}
);
}
export function getAllAuthors(): Record<string, LocalAuthor> {
return authors;
}