From 538a72d1982e1fd2e3cf582b427e8d84e7edf708 Mon Sep 17 00:00:00 2001 From: Quentin Date: Sat, 23 Jan 2021 18:28:29 +0100 Subject: Refactor website --- src/_mixin/menu.pug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/_mixin') 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 -- cgit v1.2.3