From ef35a40059be533bfc66c39bfdfb6ba22c0a672f Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sat, 18 Apr 2020 12:00:23 +0200 Subject: Improve render.js code --- src/_mixin/menu.pug | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/_mixin/menu.pug (limited to 'src/_mixin') diff --git a/src/_mixin/menu.pug b/src/_mixin/menu.pug new file mode 100644 index 0000000..09794c6 --- /dev/null +++ b/src/_mixin/menu.pug @@ -0,0 +1,7 @@ +mixin menu(o) + ul + each val in o.children + - if (val.type == 'folder') + li + a(href=val.url)= val.nice_name + +menu(val) -- cgit v1.2.3