Skip to content

Commit

Permalink
Fix sort direction for authors' posts
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Corbin Crutchley committed Aug 7, 2019
1 parent 5273a0e commit a046f1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/templates/blog-author.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

1 comment on commit a046f1e

@crutchcorn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Progress on this bug can be tracked here:

gatsbyjs/gatsby#16446

Please sign in to comment.