Skip to content

Commit

Permalink
Update +server.ts
Browse files Browse the repository at this point in the history
Resolves <#568 (comment)>.
  • Loading branch information
EthanThatOneKid committed Sep 17, 2022
1 parent f51e6ec commit 11ce888
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/routes/feed.xml/+server.ts
Expand Up @@ -30,14 +30,14 @@ function makeRssFeed(posts: BlogPost[]): string {
ttl: 60,
});

for (const newsletter of posts) {
for (const p of posts) {
feed.item({
title: newsletter.title,
description: truncateDescription(newsletter.html, /* length=*/ 250),
url: newsletter.url,
categories: newsletter.labels,
author: newsletter.author.displayname,
date: new Date(newsletter.createdAt).toISOString(),
title: p.title,
description: truncateDescription(p.html, /* length=*/ 250),
url: p.url,
categories: p.labels,
author: p.author.displayname,
date: new Date(p.createdAt).toISOString(),
});
}

Expand Down

0 comments on commit 11ce888

Please sign in to comment.