aboutsummaryrefslogtreecommitdiff
path: root/src/_mixin/menu.pug
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2021-01-23 18:28:29 +0100
committerQuentin <quentin@deuxfleurs.fr>2021-01-23 18:29:02 +0100
commit538a72d1982e1fd2e3cf582b427e8d84e7edf708 (patch)
tree76a3f3ca0c9a06af1ae0adae01e68517e42d0764 /src/_mixin/menu.pug
parent8f3b18f6285ef50ff337b267f300ea9260fe42fb (diff)
downloadsite-538a72d1982e1fd2e3cf582b427e8d84e7edf708.tar.gz
site-538a72d1982e1fd2e3cf582b427e8d84e7edf708.zip
Refactor website
Diffstat (limited to 'src/_mixin/menu.pug')
-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