summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2022-05-04 00:53:37 +0200
committerache <ache@ache.one>2022-05-04 00:53:37 +0200
commit99245395e499076a1f3fb3e4854d61b1e02f2333 (patch)
tree34b9b2c54473e98675f64b56609fe69619c52270
parentImproove UX (diff)
Fix link of the headers
-rw-r--r--src/build/index.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build/index.mjs b/src/build/index.mjs
index d6f1a8a..d96eca3 100644
--- a/src/build/index.mjs
+++ b/src/build/index.mjs
@@ -33,14 +33,14 @@ const loadMD = (listFile, suffix) => {
logo.properties.src = `${suffix}/${logo.properties.src}`;
logo.properties.height = '150px';
logo.properties.width = '150px';
- titleHtml.children[0].properties.href = `${suffix}/${file.slice(0, -3)}.html`;
+ titleHtml.children[0].properties.href = `${suffix}/${file.slice(0, -3)}`;
const title = hastToString(titleHtml);
const domTitle = cssesc(title.replace(/\s+/g, '-').replace(/['"#@]/, '').toLowerCase()); // Maybe encodeURI
const readMore = h('a', 'Lire plus...');
- readMore.properties.href = `${suffix}/${file.slice(0, -3)}.html`;
+ readMore.properties.href = `${suffix}/${file.slice(0, -3)}`;
readMore.properties.role = 'expend';
readMore.properties.for = domTitle;