aboutsummaryrefslogtreecommitdiff
path: root/render.js
diff options
context:
space:
mode:
authorLUXEY Adrien <adrien.luxey@inria.fr>2021-02-03 11:16:23 +0100
committerLUXEY Adrien <adrien.luxey@inria.fr>2021-02-03 11:16:23 +0100
commit9d8201c3054c7ceed645742d7127e317aa16c586 (patch)
tree9edef37557e48b54d7fe81abaf3bd50cdf8b619c /render.js
parent9b615381f0096e8fbbc2bc5706abc4c639b275ab (diff)
parent1b78d2fbeedb45e492f652d3b041ba9b22dffe37 (diff)
downloadsite-9d8201c3054c7ceed645742d7127e317aa16c586.tar.gz
site-9d8201c3054c7ceed645742d7127e317aa16c586.zip
Merge branch 'master' of git.deuxfleurs.fr:Deuxfleurs/site
Diffstat (limited to 'render.js')
-rw-r--r--render.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/render.js b/render.js
index 33ef58a..d0333a8 100644
--- a/render.js
+++ b/render.js
@@ -24,7 +24,7 @@ const walk = async (path, filename) => {
}
}
-const ext_static = ['.css', '.js', '.otf', '.png', '.svg', '.txt', '.png', '.jpg', '.webp', 'client', 'server', '.pdf', '.ttf']
+const ext_static = ['.css', '.js', '.otf', '.png', '.svg', '.txt', '.png', '.jpg', '.webp', 'client', 'server', '.pdf', '.ttf', '.xml']
const ext_md = ['.md', '.markdown']
const ext_pug = ['.pug', '.jade']
@@ -98,7 +98,7 @@ const propagate_nice_name = prefix => tree => {
if (splitted.length > 0) {
tree.nice_path = splitted.slice(0, -1)
tree.nice_name = splitted[splitted.length - 1].split('.')[0]
- tree.url = without_prefix
+ tree.url = tree.type == 'folder' ? without_prefix + '/' : without_prefix
log('[propagate_nice_name]', [...tree.nice_path, tree.nice_name].join('|'))
}