Skip to content

Commit 779d462

Browse files
Merge pull request #94 from DethRaid/swamp_blog
fix a couple blog links, more robust item iteration
2 parents c6c4157 + c7c783d commit 779d462

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

docusaurus.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ const config: Config = {
3737
{
3838
data: {
3939
"Froyok Dev Blog": "https://www.froyok.fr/rss.xml",
40+
"Jake S. Del Mastro": "https://jakedelmastro.com/feed/",
41+
"Tearnote's Teapot": "https://tear.moe/feed/",
42+
"AntiCator.com | Blog": "https://www.anicator.com/blog/feed/",
4043
}
4144
}
4245
],

src/components/HomepageFeatures/index.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@ interface BlogItem {
3737
const FeedItems = () => {
3838
const dataSources = [
3939
useStoredFeed("Froyok Dev Blog"),
40+
useStoredFeed("Jake S. Del Mastro"),
41+
useStoredFeed("Tearnote's Teapot"),
42+
useStoredFeed("AntiCator.com | Blog"),
4043
];
4144

4245
const feedData: BlogItem[] = [];
43-
46+
4447
// merge the feeds into one
45-
dataSources.forEach((source) => source.item.forEach(({guid, title, pubDate, link}) => feedData.push({
48+
dataSources.forEach((source) => source?.item?.forEach(({guid, title, pubDate, link}) => feedData.push({
4649
source: source.title,
4750
guid,
4851
title,

0 commit comments

Comments
 (0)