Skip to content

Commit 83843b1

Browse files
committed
chore: remove commented-out technical posts feed from configuration and blog templates
Signed-off-by: Lee Calcote <[email protected]>
1 parent 3187a67 commit 83843b1

File tree

3 files changed

+5
-63
lines changed

3 files changed

+5
-63
lines changed

.github/agents/blog-writer.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ If a custom agent isn't working as expected:
180180
# - Posts with category "Meshery", "Announcements", or "Events" and tags "Community", "Meshery", or "mesheryctl"
181181
# will be included in the Meshery Community Feed (/meshery-community-feed.xml)
182182
# - All blog posts appear in the main Blog Feed (/blog/feed.xml)
183-
# - Technical posts (excluding categories "Programs", "Community", "Events", "FAQ") appear in Layer5 Technical Posts (/rss.xml)
184183
# - All news items appear in the News Feed (/news/feed.xml)
185184
```
186185

gatsby-config.js

Lines changed: 5 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -141,38 +141,7 @@ module.exports = {
141141
}
142142
`,
143143
feeds: [
144-
// FEED 1: Technical Posts
145-
{
146-
output: "/rss.xml",
147-
title: "Layer5 Technical Posts",
148-
// REQUIRED: We add this lightweight query to satisfy the plugin validator.
149-
// The 'allMdx' data from the global query above is merged into this,
150-
// so 'serialize' can still access it.
151-
query: "{ site { siteMetadata { title } } }",
152-
serialize: ({ query: { site, allMdx } }) => {
153-
return allMdx.nodes
154-
.filter((node) =>
155-
["blog", "resources", "news"].includes(node.fields.collection) &&
156-
!["Programs", "Community", "Events", "FAQ"].includes(node.frontmatter.category)
157-
)
158-
.slice(0, 20)
159-
.map((node) => {
160-
return Object.assign({}, node.frontmatter, {
161-
title: node.frontmatter.title,
162-
author: node.frontmatter.author,
163-
description: node.frontmatter.description,
164-
date: node.frontmatter.date,
165-
url: site.siteMetadata.siteUrl + node.fields.slug,
166-
guid: site.siteMetadata.siteUrl + node.fields.slug,
167-
enclosure: node.frontmatter.thumbnail && {
168-
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
169-
},
170-
custom_elements: [{ "content:encoded": node.excerpt }],
171-
});
172-
});
173-
},
174-
},
175-
// FEED 2: News
144+
// FEED 1: News
176145
{
177146
output: "/news/feed.xml",
178147
title: "Layer5 News",
@@ -197,7 +166,7 @@ module.exports = {
197166
});
198167
},
199168
},
200-
// FEED 3: Resources
169+
// FEED 2: Resources
201170
{
202171
output: "/resources/feed.xml",
203172
title: "Layer5 Resources",
@@ -222,32 +191,7 @@ module.exports = {
222191
});
223192
},
224193
},
225-
// FEED 4: Contributors
226-
{
227-
output: "/rss-contributors.xml",
228-
title: "Layer5 Contributor Feed",
229-
query: "{ site { siteMetadata { title } } }", // Lightweight query
230-
serialize: ({ query: { site, allMdx } }) => {
231-
return allMdx.nodes
232-
.filter((node) => ["blog", "news"].includes(node.fields.collection))
233-
.slice(0, 20)
234-
.map((node) => {
235-
return Object.assign({}, node.frontmatter, {
236-
title: node.frontmatter.title,
237-
author: node.frontmatter.author,
238-
description: node.frontmatter.description,
239-
date: node.frontmatter.date,
240-
url: site.siteMetadata.siteUrl + node.fields.slug,
241-
guid: site.siteMetadata.siteUrl + node.fields.slug,
242-
enclosure: node.frontmatter.thumbnail && {
243-
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
244-
},
245-
custom_elements: [{ "content:encoded": node.excerpt }],
246-
});
247-
});
248-
},
249-
},
250-
// FEED 5: Meshery Community
194+
// FEED 3: Meshery Community
251195
{
252196
output: "/meshery-community-feed.xml",
253197
title: "Meshery RSSFeed",
@@ -285,7 +229,7 @@ module.exports = {
285229
});
286230
},
287231
},
288-
// FEED 6: Blog
232+
// FEED 4: Blog
289233
{
290234
output: "/blog/feed.xml",
291235
title: "Layer5 Blog",
@@ -310,7 +254,7 @@ module.exports = {
310254
});
311255
},
312256
},
313-
// FEED 7: Events
257+
// FEED 5: Events
314258
{
315259
output: "/events/feed.xml",
316260
title: "Layer5 Events",

src/collections/blog/blog-template/index.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ published: false
1717
# - Posts with category "Meshery", "Announcements", or "Events" and tags "Community", "Meshery", or "mesheryctl"
1818
# will be included in the Meshery Community Feed (/meshery-community-feed.xml)
1919
# - All blog posts appear in the main Blog Feed (/blog/feed.xml)
20-
# - Technical posts (excluding categories "Programs", "Community", "Events", "FAQ") appear in Layer5 Technical Posts (/rss.xml)
2120
# - All news items appear in the News Feed (/news/feed.xml)
2221
---
2322

0 commit comments

Comments
 (0)