aboutsummaryrefslogtreecommitdiff
path: root/src/_mixin
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 /src/_mixin
parent9b615381f0096e8fbbc2bc5706abc4c639b275ab (diff)
parent1b78d2fbeedb45e492f652d3b041ba9b22dffe37 (diff)
downloadsite-9d8201c3054c7ceed645742d7127e317aa16c586.tar.gz
site-9d8201c3054c7ceed645742d7127e317aa16c586.zip
Merge branch 'master' of git.deuxfleurs.fr:Deuxfleurs/site
Diffstat (limited to 'src/_mixin')
-rw-r--r--src/_mixin/menu.pug3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/_mixin/menu.pug b/src/_mixin/menu.pug
index 939f6e4..d724eaf 100644
--- a/src/_mixin/menu.pug
+++ b/src/_mixin/menu.pug
@@ -7,7 +7,8 @@ mixin menu(o, element)
a(href=val.url, class=val.index.url == element.url ? 'selected' : null)= val.nice_name
- else
span= val.nice_name
- +menu(val, element)
+ - if (element.url.includes(val.url))
+ +menu(val, element)
- else if (val.type == 'file' && val.tags.includes('document') && !val.tags.includes('is_index'))
li
a(href=val.url, class=val.url == element.url ? 'selected' : null)= val.nice_name