@@ -4,31 +4,31 @@ import config from '../src/config.json';
44/**
55 * @returns {import('vite').Plugin }
66 */
7- export function rssFeedPlugin ( ) {
7+ export function rssFeedPlugin ( deployURL ) {
88 return {
99 name : 'rss-feed' ,
1010 apply : 'build' ,
1111 generateBundle ( ) {
1212 const feed = new Feed ( {
1313 title : 'Preact Blog' ,
1414 description : 'Preact news and articles' ,
15- id : 'https://preactjs.com' ,
16- link : 'https://preactjs.com' ,
15+ id : deployURL ,
16+ link : deployURL ,
1717 language : 'en' ,
18- image : 'https://preactjs.com/ assets/branding/symbol.png' ,
19- favicon : 'https://preactjs.com/ favicon.ico' ,
18+ image : ` ${ deployURL } / assets/branding/symbol.png` ,
19+ favicon : ` ${ deployURL } / 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+ json : ` ${ deployURL } / json` ,
23+ atom : ` ${ deployURL } / atom`
2424 }
2525 } ) ;
2626
2727 config . blog . forEach ( post => {
2828 feed . addItem ( {
2929 title : post . name . en ,
30- id : `https://preactjs.com ${ post . path } ` ,
31- link : `https://preactjs.com ${ post . path } ` ,
30+ id : `${ deployURL } ${ post . path } ` ,
31+ link : `${ deployURL } ${ post . path } ` ,
3232 description : post . excerpt . en ,
3333 date : new Date ( post . date )
3434 } ) ;
0 commit comments