@@ -187,13 +187,10 @@ module.exports = {
187
187
...options ,
188
188
id : baseUrl ,
189
189
title,
190
- link : baseUrl ,
190
+ site_url : baseUrl ,
191
191
description,
192
192
copyright : `All rights reserved ${ currentYear } , ${ company } ` ,
193
- author : {
194
- name : author ,
195
- link : "https://twitter.com/Chilli_Cream" ,
196
- } ,
193
+ author,
197
194
generator : "ChilliCream" ,
198
195
image : `${ baseUrl } /favicon-32x32.png` ,
199
196
favicon : `${ baseUrl } /favicon-32x32.png` ,
@@ -242,37 +239,31 @@ module.exports = {
242
239
} ,
243
240
} ,
244
241
} ) =>
245
- allMdx . edges . map ( ( { node } ) => {
246
- const date = new Date ( Date . parse ( node . frontmatter . date ) ) ;
242
+ allMdx . edges . map ( ( { node : { excerpt , frontmatter , body } } ) => {
243
+ const date = new Date ( Date . parse ( frontmatter . date ) ) ;
247
244
const imgSrcPattern = new RegExp (
248
245
`(${ pathPrefix } )?/static/` ,
249
246
"g"
250
247
) ;
251
- const link = siteUrl + pathPrefix + node . frontmatter . path ;
252
- let image = node . frontmatter . featuredImage
248
+ const link = siteUrl + pathPrefix + frontmatter . path ;
249
+ let image = frontmatter . featuredImage
253
250
? siteUrl +
254
- node . frontmatter . featuredImage . childImageSharp
251
+ frontmatter . featuredImage . childImageSharp
255
252
. gatsbyImageData . src
256
253
: null ;
257
254
258
255
return {
259
- id : node . frontmatter . path ,
260
- link,
261
- title : node . frontmatter . title ,
256
+ url : link ,
257
+ title : frontmatter . title ,
262
258
date,
263
259
published : date ,
264
- description : node . excerpt ,
265
- content : node . body . replace (
260
+ description : excerpt ,
261
+ content : body . replace (
266
262
imgSrcPattern ,
267
263
`${ siteUrl } /static/`
268
264
) ,
269
265
image,
270
- author : [
271
- {
272
- name : node . frontmatter . author ,
273
- link : node . frontmatter . authorUrl ,
274
- } ,
275
- ] ,
266
+ author : frontmatter . author ,
276
267
} ;
277
268
} ) ,
278
269
title : "ChilliCream Blog" ,
0 commit comments