Skip to content

Commit

Permalink
Merge pull request #372 from snak1t/feature/blog_sorting
Browse files Browse the repository at this point in the history
Sort blog posts by date field
  • Loading branch information
kitos authored Oct 20, 2018
2 parents 11325bc + 4a4b51b commit bdcf0f1
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 bdcf0f1

Please sign in to comment.