Skip to content

Commit

Permalink
修复 rss
Browse files Browse the repository at this point in the history
  • Loading branch information
zidoshare committed May 28, 2024
1 parent 96d1bd7 commit e644432
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ module.exports = {
return allMarkdownRemark.edges.map(edge => {
return Object.assign({}, edge.node.frontmatter, {
description: edge.node.excerpt,
custom_elements: [{ "content:encoded": edge.node.html }],
date: edge.node.frontmatter.createdDate,
url: site.siteMetadata.siteUrl + edge.node.fields.slug,
guid: site.siteMetadata.siteUrl + edge.node.fields.slug,
Expand All @@ -158,6 +159,7 @@ module.exports = {
edges {
node {
excerpt
html
fields { slug }
frontmatter {
title
Expand Down

0 comments on commit e644432

Please sign in to comment.