diff options
author | ache <ache@ache.one> | 2024-08-10 07:33:54 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2024-08-10 07:33:54 +0200 |
commit | 236665bdd0bc3ba3757800f2da466c9133347c95 (patch) | |
tree | 377fd23aea55ec0d45f356a1db77c938a228abe7 /src/build/index.mjs | |
parent | Clean sitemap.xml (diff) |
Add RSS full description
Diffstat (limited to 'src/build/index.mjs')
-rw-r--r-- | src/build/index.mjs | 6 |
1 files changed, 4 insertions, 2 deletions
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`, |