Skip to content

Commit 2470f26

Browse files
Copilotleecalcote
andcommitted
Fix gatsby-plugin-feed: replace deprecated html field with excerpt for MDX v5 compatibility
Co-authored-by: leecalcote <7570704+leecalcote@users.noreply.github.com>
1 parent 7d95873 commit 2470f26

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

gatsby-config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ module.exports = {
115115
filter: { frontmatter: { published: { eq: true }${process.env.NODE_ENV === "development" ? ", date: { gte: \"2024-01-01\" }" : ""} } }
116116
) {
117117
nodes {
118-
html
118+
excerpt
119119
frontmatter {
120120
title
121121
author
@@ -167,7 +167,7 @@ module.exports = {
167167
enclosure: node.frontmatter.thumbnail && {
168168
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
169169
},
170-
custom_elements: [{ "content:encoded": node.html }],
170+
custom_elements: [{ "content:encoded": node.excerpt }],
171171
});
172172
});
173173
},
@@ -192,7 +192,7 @@ module.exports = {
192192
enclosure: node.frontmatter.thumbnail && {
193193
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
194194
},
195-
custom_elements: [{ "content:encoded": node.html }],
195+
custom_elements: [{ "content:encoded": node.excerpt }],
196196
});
197197
});
198198
},
@@ -217,7 +217,7 @@ module.exports = {
217217
enclosure: node.frontmatter.thumbnail && {
218218
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
219219
},
220-
custom_elements: [{ "content:encoded": node.html }],
220+
custom_elements: [{ "content:encoded": node.excerpt }],
221221
});
222222
});
223223
},
@@ -242,7 +242,7 @@ module.exports = {
242242
enclosure: node.frontmatter.thumbnail && {
243243
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
244244
},
245-
custom_elements: [{ "content:encoded": node.html }],
245+
custom_elements: [{ "content:encoded": node.excerpt }],
246246
});
247247
});
248248
},
@@ -276,7 +276,7 @@ module.exports = {
276276
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
277277
},
278278
custom_elements: [
279-
{ "content:encoded": node.html },
279+
{ "content:encoded": node.excerpt },
280280
{ "content:type": node.frontmatter.type },
281281
{ "content:category": node.frontmatter.category },
282282
{ "content:tags": node.frontmatter.tags?.join(", ") || "" },
@@ -305,7 +305,7 @@ module.exports = {
305305
enclosure: node.frontmatter.thumbnail && {
306306
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
307307
},
308-
custom_elements: [{ "content:encoded": node.html }],
308+
custom_elements: [{ "content:encoded": node.excerpt }],
309309
});
310310
});
311311
},
@@ -330,7 +330,7 @@ module.exports = {
330330
enclosure: node.frontmatter.thumbnail && {
331331
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
332332
},
333-
custom_elements: [{ "content:encoded": node.html }],
333+
custom_elements: [{ "content:encoded": node.excerpt }],
334334
});
335335
});
336336
},

src/sections/Learn/Workshop-grid/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ const WorkshopsPage = () => {
101101
<div className="workshop-grid-wrapper">
102102
<Row style={{
103103
flexWrap: "wrap"
104-
}}>
104+
}}
105+
>
105106
{data.allMdx.nodes.map(({ id, frontmatter, fields }) => (
106107
<Col {...content && ID === id ? { $xs: 12, $sm: 12, $lg: 12 } : { $xs: 12, $sm: 6, $lg: 4 } } key={id} className="workshop-grid-col">
107108
<div className="workshop-grid-card" ref={(el) => {

0 commit comments

Comments
 (0)