diff options
Diffstat (limited to 'src/build/index.mjs')
-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: { |