From a046f1ebdde70e129250cac68c426c8c3f0d016c Mon Sep 17 00:00:00 2001 From: Corbin Crutchley Date: Wed, 7 Aug 2019 13:24:12 -0700 Subject: [PATCH 1/2] Fix sort direction for authors' posts This was merged into it's own branch as there is a bug in Gatsby that breaks develop mode with this applied. Waiting until upstream fix before merging into master --- src/templates/blog-author.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/templates/blog-author.js b/src/templates/blog-author.js index 4a5b81d1..3a181ed5 100644 --- a/src/templates/blog-author.js +++ b/src/templates/blog-author.js @@ -64,7 +64,8 @@ export const pageQuery = graphql` ...AuthorInfo } allMarkdownRemark( - filter: { frontmatter: { author: { id: { eq: $slug } } } } + filter: {frontmatter: {author: {id: {eq: $slug}}}}, + sort: {order: DESC, fields: frontmatter___published} ) { totalCount edges { From e0c335f54d5f00942293b2866f0e3b8cf063e73d Mon Sep 17 00:00:00 2001 From: Corbin Crutchley Date: Wed, 7 Aug 2019 13:53:03 -0700 Subject: [PATCH 2/2] Added missing gitignored files --- config/gatsby-config-consts.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 config/gatsby-config-consts.js diff --git a/config/gatsby-config-consts.js b/config/gatsby-config-consts.js new file mode 100644 index 00000000..90708a28 --- /dev/null +++ b/config/gatsby-config-consts.js @@ -0,0 +1,3 @@ +module.exports = { + googleAnalytics: '' +}