import * as React from "react" import { graphql, PageProps } from "gatsby" import Layout from "../../components/organisms/Layout" const Blog = ({ data: { allMdx } }: PageProps) => { console.log("allMdx", allMdx) return ( {allMdx.edges.map(({ node: post }) => (

{post.frontmatter?.title}

))}
) } export const query = graphql` query Blog { allMdx { edges { node { id slug frontmatter { title published } } } } } ` export default Blog