site/src/_mixin/menu.pug

7 lines
151 B
Text

mixin menu(o)
ul
each val in o.children
- if (val.type == 'folder')
li
a(href=val.url)= val.nice_name
+menu(val)