aboutsummaryrefslogtreecommitdiff
path: root/src/_mixin
diff options
context:
space:
mode:
Diffstat (limited to 'src/_mixin')
-rw-r--r--src/_mixin/menu.pug7
1 files changed, 7 insertions, 0 deletions
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)