text: import React from 'react'
  import Helmet from 'react-helmet'
  import { graphql } from 'gatsby'
  import Layout from '../layout'
  import PostListing from '../components/PostListing'
  import config from '../../data/SiteConfig'
  
  const Index = ({ data }) => (
    <Layout>
      <main>
        <Helmet title={config.siteTitle} />
        <PostListing postEdges={data.allMarkdownRemark.edges} />
      </main>
    </Layout>
  )
  
  export default Index
  
  /* eslint no-undef: "off" */
  export const pageQuery = graphql`
    query IndexQuery {
      allMarkdownRemark(
        limit: 2000
      ) {
        edges {
          node {
            fields {
              slug
            }
            excerpt
            frontmatter {
              title
              tags
              categories
            }
          }
        }
      }
    }
  `
  