{"size": 808, "ext": "js", "max_stars_repo_path": "src/pages/index.js", "max_stars_repo_name": "LuisPinedaJR/Gatsby-blog", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/pages/index.js", "max_issues_repo_name": "LuisPinedaJR/Gatsby-blog", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/pages/index.js", "max_forks_repo_name": "LuisPinedaJR/Gatsby-blog", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.7906976744, "max_line_length": 48, "alphanum_fraction": 0.5631188119}
import React from 'react'
import Link from 'gatsby-link'



const IndexPage = ({data}) => (
  <div>
    <h1>Wubba lubba dub dub friends!</h1>
    <p>Meeseeks!!</p>
    <p>I'm Ants-In-My-Eyes Johnson! here at 
    Ants-In-My-Eyes Johnson's Electronics! 
    I mean, there's so many ants in my eyes!</p>
    <Link to="/page-2/">Go to page 2</Link>
    <h2>Index</h2>
    {data.allMarkdownRemark.edges.map(post =>(
      <Link key={post.node.id} 
      href={post.node.frontmatter.path}
      >
      {post.node.frontmatter.title}
      </Link>
    ))}
  </div>
)

export const pageQuery = graphql`
query IndexQuery {
  allMarkdownRemark(limit: 10) {
    edges {
      node {
        html
        id
        frontmatter {
          path
          title
        }
      }
    }
  }
}
`

export default IndexPage
