Skip to content

Commit 08a4f27

Browse files
committed
update queries to converted syntax
1 parent e2c8e46 commit 08a4f27

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/pages/blog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default BlogIndex
2525

2626
export const pageQuery = graphql`
2727
query BlogIndexQuery {
28-
allContentfulBlogPost(sort: { fields: [publishDate], order: DESC }) {
28+
allContentfulBlogPost(sort: { publishDate: DESC }) {
2929
nodes {
3030
title
3131
slug

src/pages/index.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default RootIndex
2828

2929
export const pageQuery = graphql`
3030
query HomeQuery {
31-
allContentfulBlogPost(sort: { fields: [publishDate], order: DESC }) {
31+
allContentfulBlogPost(sort: { publishDate: DESC }) {
3232
nodes {
3333
title
3434
slug
@@ -57,11 +57,7 @@ export const pageQuery = graphql`
5757
}
5858
title
5959
heroImage: image {
60-
gatsbyImage(
61-
layout: CONSTRAINED
62-
placeholder: BLURRED
63-
width: 1180
64-
)
60+
gatsbyImage(layout: CONSTRAINED, placeholder: BLURRED, width: 1180)
6561
}
6662
}
6763
}

0 commit comments

Comments
 (0)