diff options
author | Quentin <quentin@deuxfleurs.fr> | 2021-01-23 18:28:29 +0100 |
---|---|---|
committer | Quentin <quentin@deuxfleurs.fr> | 2021-01-23 18:29:02 +0100 |
commit | 538a72d1982e1fd2e3cf582b427e8d84e7edf708 (patch) | |
tree | 76a3f3ca0c9a06af1ae0adae01e68517e42d0764 /src/_mixin/menu.pug | |
parent | 8f3b18f6285ef50ff337b267f300ea9260fe42fb (diff) | |
download | site-538a72d1982e1fd2e3cf582b427e8d84e7edf708.tar.gz site-538a72d1982e1fd2e3cf582b427e8d84e7edf708.zip |
Refactor website
Diffstat (limited to 'src/_mixin/menu.pug')
-rw-r--r-- | src/_mixin/menu.pug | 3 |
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 |