import { MDXRemote } from 'next-mdx-remote' import MDXComponents from '@/components/MDXComponents' import siteMetadata from '@/data/siteMetadata' import SocialIcon from '@/components/social-icons' import { PageSeo } from '@/components/SEO' import { getFileBySlug } from '@/lib/mdx' export async function getStaticProps() { const authorDetails = await getFileBySlug('authors', ['default']) return { props: { authorDetails } } } export default function About({ authorDetails }) { const { mdxSource, frontMatter } = authorDetails const { name, avatar, email, twitter, linkedin, github } = frontMatter return ( <>

About

avatar

{name}

Professor of Atmospheric Science
Stanford University
) }