Skip to content

Commit

Permalink
Sort blog posts by date field
Browse files Browse the repository at this point in the history
  • Loading branch information
ro-abramov committed Oct 18, 2018
1 parent f1ae8d3 commit 4a4b51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default mapProps(({ data: { allMarkdownRemark: { edges } } }) => ({

export let pageQuery = graphql`
query AllPosts {
allMarkdownRemark {
allMarkdownRemark(sort: { fields: frontmatter___date, order: DESC }) {
edges {
node {
id
Expand Down

0 comments on commit 4a4b51b

Please sign in to comment.