Skip to content

Commit

Permalink
RSS post summary use "spoiler" graphql field (gatsbyjs#68)
Browse files Browse the repository at this point in the history
* RSS post summary use "spoiler" graphql field

* Update gatsby-config.js
  • Loading branch information
sinchang authored and gaearon committed Jan 7, 2019
1 parent b8a00ff commit 1fd3f89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = {
edge.node.fields.slug}">clicking here.]</a></div>
`
return Object.assign({}, edge.node.frontmatter, {
description: edge.node.excerpt,
description: edge.node.frontmatter.spoiler,
date: edge.node.fields.date,
url: site.siteMetadata.siteUrl + edge.node.fields.slug,
guid: site.siteMetadata.siteUrl + edge.node.fields.slug,
Expand All @@ -104,6 +104,7 @@ module.exports = {
frontmatter {
title
date
spoiler
}
}
}
Expand Down

0 comments on commit 1fd3f89

Please sign in to comment.