@@ -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" ,
0 commit comments