-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathrss-feed.js
More file actions
35 lines (35 loc) · 808 Bytes
/
rss-feed.js
File metadata and controls
35 lines (35 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module.exports = {
serialize: ({ query: { site, allEpisode } }) => {
return allEpisode.edges.map(({ node }) => ({
title: `BxJS Weekly - ${node.data.episodeName}`,
date: node.data.episodeDate,
url: site.siteMetadata.siteUrl + node.data.episodeUrl,
guid: site.siteMetadata.siteUrl + node.data.episodeUrl,
description: node.data.html,
}));
},
query: `
{
allEpisode {
edges {
node {
data {
links {
category
title
urls
}
episodeDate
episodeName
episodeUrl
html
filename
}
}
}
}
}
`,
output: '/rss.xml',
title: 'BxJS Weekly RSS Feed',
};