summaryrefslogtreecommitdiff
path: root/src/build/index.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'src/build/index.mjs')
-rw-r--r--src/build/index.mjs6
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`,