aboutsummaryrefslogtreecommitdiff
path: root/src/_mixin/menu.pug
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-10-17 09:51:32 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-10-17 09:51:32 +0200
commita8a5a40027299e778ecec9a382efef4cd1af5633 (patch)
tree36b2571e9f36aa1d4e672fe93ee3b08b2b1f8cca /src/_mixin/menu.pug
parent91d10a7eb34c41d4a04e395f0e587142ea436da0 (diff)
downloadsite-a8a5a40027299e778ecec9a382efef4cd1af5633.tar.gz
site-a8a5a40027299e778ecec9a382efef4cd1af5633.zip
ajout du nouveau site dans le dépot
Diffstat (limited to 'src/_mixin/menu.pug')
-rw-r--r--src/_mixin/menu.pug14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/_mixin/menu.pug b/src/_mixin/menu.pug
deleted file mode 100644
index d724eaf..0000000
--- a/src/_mixin/menu.pug
+++ /dev/null
@@ -1,14 +0,0 @@
-mixin menu(o, element)
- ul
- each val in o.children
- - if (val.type == 'folder' && val.tags.includes('document'))
- li
- - if (val.tags.includes('has_index'))
- a(href=val.url, class=val.index.url == element.url ? 'selected' : null)= val.nice_name
- - else
- span= val.nice_name
- - 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