diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-02-03 11:28:51 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-02-03 11:28:51 +0100 |
commit | 9343712ee788fd7453ba41b5e65cdbf33f4a18a3 (patch) | |
tree | b1be8be1ae11083f6f42505cc6517d1ca503c837 /src/_mixin | |
parent | ce7820801a23ffd086495b4ba1b4de1d79637e32 (diff) | |
parent | 9d8201c3054c7ceed645742d7127e317aa16c586 (diff) | |
download | site-9343712ee788fd7453ba41b5e65cdbf33f4a18a3.tar.gz site-9343712ee788fd7453ba41b5e65cdbf33f4a18a3.zip |
Merge branch 'master' of git.deuxfleurs.fr:Deuxfleurs/site
Diffstat (limited to 'src/_mixin')
-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 |