This commit is contained in:
parent
513f54bb2e
commit
ea411c3599
1 changed files with 3 additions and 7 deletions
10
node/rss.js
10
node/rss.js
|
@ -16,8 +16,8 @@ function createFeed(callback) {
|
||||||
const feed = new Feed({
|
const feed = new Feed({
|
||||||
title: "Ellpeck's Blog",
|
title: "Ellpeck's Blog",
|
||||||
description: "Occasionally I enjoy writing stuff. So here's some of the stuff I've written about gaming, programming and life.",
|
description: "Occasionally I enjoy writing stuff. So here's some of the stuff I've written about gaming, programming and life.",
|
||||||
id: "https://ellpeck.de",
|
id: "https://ellpeck.de/",
|
||||||
link: "https://ellpeck.de",
|
link: "https://ellpeck.de/",
|
||||||
image: "https://ellpeck.de/res/logo.png",
|
image: "https://ellpeck.de/res/logo.png",
|
||||||
favicon: "https://ellpeck.de/favicon.ico",
|
favicon: "https://ellpeck.de/favicon.ico",
|
||||||
language: "en",
|
language: "en",
|
||||||
|
@ -29,7 +29,7 @@ function createFeed(callback) {
|
||||||
author: {
|
author: {
|
||||||
name: "Ellpeck",
|
name: "Ellpeck",
|
||||||
email: "me@ellpeck.de",
|
email: "me@ellpeck.de",
|
||||||
link: "https://ellpeck.de"
|
link: "https://ellpeck.de/"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -53,10 +53,6 @@ function createFeed(callback) {
|
||||||
name: c
|
name: c
|
||||||
}))
|
}))
|
||||||
});
|
});
|
||||||
for (let cat of post.cat) {
|
|
||||||
if (feed.categories.indexOf(cat) < 0)
|
|
||||||
feed.addCategory(cat);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (index === 0)
|
if (index === 0)
|
||||||
finalCallback(feed);
|
finalCallback(feed);
|
||||||
|
|
Loading…
Reference in a new issue