mirror of
https://github.com/zenlm/zen-blog.git
synced 2026-10-30 15:05:49 +00:00
- Replace Hugo static site generator with Next.js 15 + fumadocs-mdx - Convert 71 blog posts from Hugo format to MDX/MD - Convert Hugo shortcodes (figure, button, video, example, fullwidth) to MDX components (Figure, LinkButton, Video, Fullwidth) - Add remark-math + rehype-katex for LaTeX math rendering - Copy JSON case files to public/cases/ for reference - Update branding for Zen LM (site-nav, footer, metadata) - Static export for Cloudflare Pages deployment - Chinese (.zh.md) translations deferred for future migration
29 lines
581 B
TypeScript
29 lines
581 B
TypeScript
export interface Author {
|
|
name: string;
|
|
position: string;
|
|
avatar: string;
|
|
}
|
|
|
|
export const authors: Record<string, Author> = {
|
|
"zen-lm": {
|
|
name: "Zen LM",
|
|
position: "AI Research Lab",
|
|
avatar: "/authors/zen.svg",
|
|
},
|
|
"zach-kelling": {
|
|
name: "Zach Kelling",
|
|
position: "Co-founder & CEO",
|
|
avatar: "/authors/zen.svg",
|
|
},
|
|
} as const;
|
|
|
|
export type AuthorKey = keyof typeof authors;
|
|
|
|
export function getAuthor(key: AuthorKey): Author {
|
|
return authors[key];
|
|
}
|
|
|
|
export function isValidAuthor(key: string): key is AuthorKey {
|
|
return key in authors;
|
|
}
|