diff --git a/www/gatsby-node.js b/www/gatsby-node.js index a274256641e24..5e73aa91b9252 100644 --- a/www/gatsby-node.js +++ b/www/gatsby-node.js @@ -144,7 +144,7 @@ exports.createPages = ({ graphql, actions }) => { graphql(` query { allMarkdownRemark( - sort: { order: DESC, fields: [frontmatter___date] } + sort: { order: DESC, fields: [frontmatter___date, fields___slug] } limit: 10000 filter: { fileAbsolutePath: { ne: null } } ) { diff --git a/www/src/pages/index.js b/www/src/pages/index.js index 620134ea78c2d..1de1fa9eadfe8 100644 --- a/www/src/pages/index.js +++ b/www/src/pages/index.js @@ -301,7 +301,7 @@ export const pageQuery = graphql` } } allMarkdownRemark( - sort: { order: DESC, fields: [frontmatter___date] } + sort: { order: DESC, fields: [frontmatter___date, fields___slug] } limit: 3 filter: { frontmatter: { draft: { ne: true } } @@ -319,6 +319,7 @@ export const pageQuery = graphql` filter: { fields: { starterShowcase: { slug: { in: $featuredStarters } } } } + sort: { fields: [fields___starterShowcase___slug] } ) { edges { node { diff --git a/www/src/templates/tags.js b/www/src/templates/tags.js index eae1d5840b124..e0353071fdec3 100644 --- a/www/src/templates/tags.js +++ b/www/src/templates/tags.js @@ -61,7 +61,7 @@ export const pageQuery = graphql` query($tag: String) { allMarkdownRemark( limit: 2000 - sort: { fields: [frontmatter___date], order: DESC } + sort: { fields: [frontmatter___date, fields___slug], order: DESC } filter: { frontmatter: { tags: { in: [$tag] } } fileAbsolutePath: { regex: "/docs.blog/" } diff --git a/www/src/templates/template-blog-list.js b/www/src/templates/template-blog-list.js index 22859a6864cce..d38971a732965 100644 --- a/www/src/templates/template-blog-list.js +++ b/www/src/templates/template-blog-list.js @@ -112,7 +112,7 @@ export default BlogPostsIndex export const pageQuery = graphql` query blogListQuery($skip: Int!, $limit: Int!) { allMarkdownRemark( - sort: { order: DESC, fields: [frontmatter___date] } + sort: { order: DESC, fields: [frontmatter___date, fields___slug] } filter: { frontmatter: { draft: { ne: true } } fileAbsolutePath: { regex: "/docs.blog/" } diff --git a/www/src/templates/template-contributor-page.js b/www/src/templates/template-contributor-page.js index c36caf6a479db..6bb6691622f8a 100644 --- a/www/src/templates/template-contributor-page.js +++ b/www/src/templates/template-contributor-page.js @@ -105,7 +105,7 @@ export const pageQuery = graphql` } } allMarkdownRemark( - sort: { order: DESC, fields: [frontmatter___date] } + sort: { order: DESC, fields: [frontmatter___date, fields___slug] } filter: { fileAbsolutePath: { regex: "/blog/" } frontmatter: { draft: { ne: true } }