From 236665bdd0bc3ba3757800f2da466c9133347c95 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 10 Aug 2024 07:33:54 +0200 Subject: Add RSS full description --- src/build/index.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/build/index.mjs') diff --git a/src/build/index.mjs b/src/build/index.mjs index e589101..26d2067 100644 --- a/src/build/index.mjs +++ b/src/build/index.mjs @@ -50,7 +50,9 @@ for (const lang in i18n) { // Same for notes const notes = notesAll.filter((note) => note.metaData.lang == lang); - for (const post of [...articles, ...notes]) { + const material = [...articles, ...notes]; + + for (const post of material) { const context = { svg, page_title: `${post.title} - ache`, @@ -138,7 +140,7 @@ for (const lang in i18n) { { console.log(`Create RSS Flux: ${lang}/rss-full.xml`); - const xmlFeed = getRSS(material, baseUrl, lang); + const xmlFeed = getRSS(material, baseUrl, lang, "rss_full"); fs.writeFileSync(`${lang}/rss-full.xml`, xmlFeed); links.push({ url: `${baseUrl}${lang}/rss-full.xml`, -- cgit v1.2.3-70-g09d2