Skip to content

Commit 1f12da9

Browse files
authored
Merge pull request contentful-userland#3 from contentful/hotfix/webp-over-traced-svg
Use webp instead of traced SVGs
2 parents 3e5ddef + 8a32f87 commit 1f12da9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/pages/blog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const pageQuery = graphql`
4646
tags
4747
heroImage {
4848
sizes(maxWidth: 350, maxHeight: 196, resizingBehavior: SCALE) {
49-
...GatsbyContentfulSizes_tracedSVG
49+
...GatsbyContentfulSizes_withWebp
5050
}
5151
}
5252
description {

src/pages/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const pageQuery = graphql`
4444
tags
4545
heroImage {
4646
sizes(maxWidth: 350, maxHeight: 196, resizingBehavior: SCALE) {
47-
...GatsbyContentfulSizes_tracedSVG
47+
...GatsbyContentfulSizes_withWebp
4848
}
4949
}
5050
description {
@@ -70,7 +70,7 @@ export const pageQuery = graphql`
7070
resizingBehavior: PAD
7171
background: "rgb:000000"
7272
) {
73-
...GatsbyContentfulSizes_tracedSVG
73+
...GatsbyContentfulSizes_withWebp
7474
}
7575
}
7676
}

src/templates/blog-post.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const pageQuery = graphql`
4545
publishDate(formatString: "MMMM Do, YYYY")
4646
heroImage {
4747
sizes(maxWidth: 1180, background: "rgb:000000") {
48-
...GatsbyContentfulSizes_tracedSVG
48+
...GatsbyContentfulSizes_withWebp
4949
}
5050
}
5151
body {

0 commit comments

Comments
 (0)