@@ -16,14 +16,14 @@ const GatsbyPluginImagePage = ({ data }) => {
1616 < div >
1717 < p >
1818 < strong >
19- { node . title } ({ node . file . fileName . split ( "." ) . pop ( ) } )
19+ { node . title } ({ node . fileName . split ( "." ) . pop ( ) } )
2020 </ strong >
2121 </ p >
2222 { node . description && < p > { node . description } </ p > }
2323 { node . constrained ? (
2424 < GatsbyImage image = { node . constrained } />
2525 ) : (
26- < SvgImage src = { node . file . url } />
26+ < SvgImage src = { node . url } />
2727 ) }
2828 </ div >
2929 ) ) }
@@ -34,14 +34,14 @@ const GatsbyPluginImagePage = ({ data }) => {
3434 < div >
3535 < p >
3636 < strong >
37- { node . title } ({ node . file . fileName . split ( "." ) . pop ( ) } )
37+ { node . title } ({ node . fileName . split ( "." ) . pop ( ) } )
3838 </ strong >
3939 </ p >
4040 { node . description && < p > { node . description } </ p > }
4141 { node . fullWidth ? (
4242 < GatsbyImage image = { node . fullWidth } />
4343 ) : (
44- < SvgImage src = { node . file . url } />
44+ < SvgImage src = { node . url } />
4545 ) }
4646 </ div >
4747 ) ) }
@@ -53,14 +53,14 @@ const GatsbyPluginImagePage = ({ data }) => {
5353 < div >
5454 < p >
5555 < strong >
56- { node . title } ({ node . file . fileName . split ( "." ) . pop ( ) } )
56+ { node . title } ({ node . fileName . split ( "." ) . pop ( ) } )
5757 </ strong >
5858 </ p >
5959 { node . description && < p > { node . description } </ p > }
6060 { node . fixed ? (
6161 < GatsbyImage image = { node . fixed } />
6262 ) : (
63- < SvgImage src = { node . file . url } />
63+ < SvgImage src = { node . url } />
6464 ) }
6565 </ div >
6666 ) ) }
@@ -72,14 +72,14 @@ const GatsbyPluginImagePage = ({ data }) => {
7272 < div >
7373 < p >
7474 < strong >
75- { node . title } ({ node . file . fileName . split ( "." ) . pop ( ) } )
75+ { node . title } ({ node . fileName . split ( "." ) . pop ( ) } )
7676 </ strong >
7777 </ p >
7878 { node . description && < p > { node . description } </ p > }
7979 { node . dominantColor ? (
8080 < GatsbyImage image = { node . dominantColor } />
8181 ) : (
82- < SvgImage src = { node . file . url } />
82+ < SvgImage src = { node . url } />
8383 ) }
8484 </ div >
8585 ) ) }
@@ -91,14 +91,14 @@ const GatsbyPluginImagePage = ({ data }) => {
9191 < div >
9292 < p >
9393 < strong >
94- { node . title } ({ node . file . fileName . split ( "." ) . pop ( ) } )
94+ { node . title } ({ node . fileName . split ( "." ) . pop ( ) } )
9595 </ strong >
9696 </ p >
9797 { node . description && < p > { node . description } </ p > }
9898 { node . traced ? (
9999 < GatsbyImage image = { node . traced } />
100100 ) : (
101- < SvgImage src = { node . file . url } />
101+ < SvgImage src = { node . url } />
102102 ) }
103103 </ div >
104104 ) ) }
@@ -110,14 +110,14 @@ const GatsbyPluginImagePage = ({ data }) => {
110110 < div >
111111 < p >
112112 < strong >
113- { node . title } ({ node . file . fileName . split ( "." ) . pop ( ) } )
113+ { node . title } ({ node . fileName . split ( "." ) . pop ( ) } )
114114 </ strong >
115115 </ p >
116116 { node . description && < p > { node . description } </ p > }
117117 { node . blurred ? (
118118 < GatsbyImage image = { node . blurred } />
119119 ) : (
120- < SvgImage src = { node . file . url } />
120+ < SvgImage src = { node . url } />
121121 ) }
122122 </ div >
123123 ) ) }
@@ -129,7 +129,7 @@ const GatsbyPluginImagePage = ({ data }) => {
129129 < div >
130130 < p >
131131 < strong >
132- { node . title } ({ node . file . fileName . split ( "." ) . pop ( ) } )
132+ { node . title } ({ node . fileName . split ( "." ) . pop ( ) } )
133133 </ strong >
134134 </ p >
135135 { node . description && < p > { node . description } </ p > }
@@ -143,7 +143,7 @@ const GatsbyPluginImagePage = ({ data }) => {
143143 } }
144144 />
145145 ) : (
146- < SvgImage src = { node . file . url } />
146+ < SvgImage src = { node . url } />
147147 ) }
148148 </ div >
149149 ) ) }
@@ -173,10 +173,8 @@ export const pageQuery = graphql`
173173 nodes {
174174 title
175175 description
176- file {
177- fileName
178- url
179- }
176+ fileName
177+ url
180178 constrained: gatsbyImageData(width: 420)
181179 fullWidth: gatsbyImageData(width: 200, layout: FIXED)
182180 fixed: gatsbyImageData(width: 200, layout: FIXED)
0 commit comments