From 6bc49591c3d74417b2cc3c8052cd0e170d1ac300 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Tue, 18 Jul 2017 12:45:00 -0700 Subject: [PATCH] Add default sort on frontmatter data fixes #39 --- src/pages/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/index.js b/src/pages/index.js index 8c42da4..7fef5ee 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -55,7 +55,7 @@ export const pageQuery = graphql` title } } - allMarkdownRemark { + allMarkdownRemark(sort: { fields: [frontmatter___date], order: DESC }) { edges { node { frontmatter {