From b9d413348825854d1b84835c226dfef9c1f1e128 Mon Sep 17 00:00:00 2001 From: Hays Clark Date: Wed, 7 Mar 2018 10:33:23 -0800 Subject: [PATCH] perf: removing dead GraphQL query --- src/templates/index.jsx | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/templates/index.jsx b/src/templates/index.jsx index 8027d8456..e05bbb9a6 100644 --- a/src/templates/index.jsx +++ b/src/templates/index.jsx @@ -125,26 +125,7 @@ class IndexTemplate extends React.Component { /* eslint no-undef: "off" */ export const pageQuery = graphql` query IndexQuery { - allMarkdownRemark( - limit: 2000 - sort: { fields: [frontmatter___date], order: DESC } - ) { - edges { - node { - fields { - slug - } - excerpt - timeToRead - frontmatter { - title - tags - cover - date - } - } - } - } + # posts data comes from the context # authors authors: allAuthorsJson { edges {