import Link from '@/components/Link' import PageTitle from '@/components/PageTitle' import SectionContainer from '@/components/SectionContainer' import { BlogSeo } from '@/components/SEO' import Tag from '@/components/Tag' import siteMetadata from '@/data/siteMetadata' const editUrl = (fileName) => `${siteMetadata.siteRepo}/blob/master/data/blog/${fileName}` const discussUrl = (slug) => `https://mobile.twitter.com/search?q=${encodeURIComponent(`${siteMetadata.siteUrl}/blog/${slug}`)}` const postDateTemplate = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' } export default function PostLayout({ children, frontMatter, next, prev }) { const { slug, fileName, date, title, tags } = frontMatter return (
Published on
{title}
Authors
  • avatar
    Name
    {siteMetadata.author}
    Twitter
    {siteMetadata.twitter.replace('https://twitter.com/', '@')}
{children}
{'Discuss on Twitter'} {` • `} {'View on GitHub'}
) }