We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c79d6a commit dfbbaeeCopy full SHA for dfbbaee
scripts/generate-rss.mjs
@@ -18,10 +18,9 @@ async function main() {
18
});
19
20
for (const post of posts) {
21
- const plain = post.body.html.replace(/<[^>]*>/g, "").replace(/\s+/g, " ").trim();
22
feed.item({
23
title: post.title,
24
- description: plain.length > 250 ? plain.slice(0, 250) + "..." : plain,
+ description: post.body.html.replace(/<[^>]*>/g, "").replace(/\s+/g, " ").trim(),
25
url: `${SITE_URL}${post.url}`,
26
author: post.author || "IntelOwl Project",
27
date: new Date(post.date),
0 commit comments