Skip to content

Commit

Permalink
Merge pull request #456 from tubone24/fixrss
Browse files Browse the repository at this point in the history
fix rss
  • Loading branch information
tubone24 authored Feb 19, 2021
2 parents faa806e + d4c6072 commit bc5c504
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ module.exports = {
{
// eslint-disable-next-line max-len
serialize: ({ query: { site, allMarkdownRemark } }) => allMarkdownRemark.edges.map((edge) => ({
// ...edge.node.frontmatter,
...edge.node.frontmatter,
title: edge.node.frontmatter.title,
description: edge.node.excerpt.replace(/<("[^"]*"|'[^']*'|[^'">])*>/g, '').replace(/\s+/g, '').replace(/#x.*;/, '').replace(/&/, ''),
description: edge.node.excerpt,
date: edge.node.frontmatter.date,
url: `${site.siteMetadata.siteUrl}/${edge.node.fields.slug}`,
guid: `${site.siteMetadata.siteUrl}/${edge.node.fields.slug}`,
Expand All @@ -127,7 +127,7 @@ module.exports = {
fields { slug }
frontmatter {
title
date
date(formatString: "ddd, DD MMM YYYY, h:mm:ss +0900")
}
}
}
Expand All @@ -136,9 +136,9 @@ module.exports = {
`,
output: '/rss.xml',
title: 'tubone BOYAKI',
feed_url: "https://blog.tubone-project24.xyz/rss.xml",
site_url: "https://blog.tubone-project24.xyz",
docs: "http://github.com/dylang/node-rss",
feed_url: 'https://blog.tubone-project24.xyz/rss.xml',
site_url: 'https://blog.tubone-project24.xyz',
docs: 'http://github.com/dylang/node-rss',
},
],
},
Expand Down

0 comments on commit bc5c504

Please sign in to comment.