diff options
| author | ache <ache@ache.one> | 2025-05-30 16:48:20 +0200 |
|---|---|---|
| committer | ache <ache@ache.one> | 2025-05-30 16:48:20 +0200 |
| commit | be2030c54365f6161f061df694e361f0717dd678 (patch) | |
| tree | 42ef74e0f94e3a13f87e51b8cabd3225e85ed9e3 /src | |
| parent | Improve dark theme on images (diff) | |
Fix declaration of constantes
Diffstat (limited to 'src')
| -rw-r--r-- | src/build/index.mjs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/build/index.mjs b/src/build/index.mjs index fda873f..abb14bc 100644 --- a/src/build/index.mjs +++ b/src/build/index.mjs @@ -34,12 +34,12 @@ const partials = { // Load global variables const svg = loadSVG(); -let links = []; +const links = []; const listNotes = fs .readdirSync("notes") .filter((name) => name.endsWith(".md")); -const notesAll = loadMD(listNotes, "notes"); // lang is determined from the note +const notesAll = loadMD(listNotes, "notes"); // The language is determined from the note const legalPages = loadMD(["legal.md", "legal-en.md"], "src/pages"); for (const lang in i18n) { @@ -92,7 +92,7 @@ for (const lang in i18n) { }); for (const tag of post.metaData.tags) { - // Insert the tag, if it already exists add it, otherwise create a object for it. + // Insert the tag, if it already exists add it, otherwise create an object for it. if (tagsArticle.has(tag)) { tagsArticle.get(tag).push(post); } else { @@ -273,12 +273,12 @@ for (const lang in i18n) { // style.xsl { - /* Because firefox doesn't support disable-output-escaping="yes" (it doesn't do anything) - * The description must be in the xsl file non escaped. 🤷 - * So the xsl file is made from a template to insert the description. - * Even if the goal of xsl is to grab that information from the initial page + /* Because Firefox doesn't support disable-output-escaping="yes" (it doesn't do anything) + * The description must be in the XSL file non escaped. 🤷 + * So the XSL file is made from a template to insert the description. + * Even if the goal of XSL is to grab that information from the initial page */ - let context = { + const context = { lang, svg, description: i18n[lang].rss_full.description, |