diff options
author | ache <ache@ache.one> | 2024-08-10 07:00:39 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2024-08-10 07:00:39 +0200 |
commit | 330fd102da03f0aa0fa815d6f2f8e452cdac2e42 (patch) | |
tree | 44d79a58abedf8bbbd35b5e940e264d3eeee238e /src/build | |
parent | Clean notes (diff) |
Support for full RSS
Diffstat (limited to 'src/build')
-rw-r--r-- | src/build/index.mjs | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/src/build/index.mjs b/src/build/index.mjs index 6a05fae..e589101 100644 --- a/src/build/index.mjs +++ b/src/build/index.mjs @@ -125,15 +125,29 @@ for (const lang in i18n) { }); } - console.log(`Create RSS Flux: ${lang}/rss.xml`); - const xmlFeed = getRSS(articles, baseUrl, lang); - fs.writeFileSync(`${lang}/rss.xml`, xmlFeed); - links.push({ - url: `${baseUrl}${lang}/rss.xml`, - changefreq: "monthly", - priority: 0.3, - }); + { + console.log(`Create RSS Flux: ${lang}/rss.xml`); + const xmlFeed = getRSS(articles, baseUrl, lang); + fs.writeFileSync(`${lang}/rss.xml`, xmlFeed); + links.push({ + url: `${baseUrl}${lang}/rss.xml`, + changefreq: "monthly", + priority: 0.3, + }); + } + + { + console.log(`Create RSS Flux: ${lang}/rss-full.xml`); + const xmlFeed = getRSS(material, baseUrl, lang); + fs.writeFileSync(`${lang}/rss-full.xml`, xmlFeed); + links.push({ + url: `${baseUrl}${lang}/rss-full.xml`, + changefreq: "monthly", + priority: 0.3, + }); + } + // Home page { const alt_lang = { fr: { |