Skip to content

Commit 6b6ada3

Browse files
committed
fix: RSS feed plugin
1 parent 717793e commit 6b6ada3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

plugins/rss-feed.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ export function rssFeedPlugin() {
1515
id: 'https://preactjs.com',
1616
link: 'https://preactjs.com',
1717
language: 'en',
18-
image: 'https://preactjs.com/assets/branding/symbol.png',
18+
image: 'https://preactjs.com/branding/symbol.png',
1919
favicon: 'https://preactjs.com/favicon.ico',
2020
copyright: 'All rights reserved 2022, the Preact team',
2121
feedLinks: {
22-
json: 'https://preactjs.com/json',
23-
atom: 'https://preactjs.com/atom'
22+
rss: 'https://preactjs.com/feed.xml',
23+
atom: 'https://preactjs.com/feed.atom'
2424
}
2525
});
2626

@@ -39,7 +39,7 @@ export function rssFeedPlugin() {
3939
.split('\n')
4040
.filter(
4141
line =>
42-
line !==
42+
line.trim() !==
4343
'<generator>https://github.com/jpmonette/feed</generator>'
4444
)
4545
.join('\n');

0 commit comments

Comments
 (0)