diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-04-18 12:00:23 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-04-18 12:00:23 +0200 |
commit | ef35a40059be533bfc66c39bfdfb6ba22c0a672f (patch) | |
tree | 23107d1e590a3ca6dbc7d410a0849f0477766391 /src/_mixin | |
parent | f3ea5086ed730e761259b3e593fe3a32379bfc95 (diff) | |
download | site-ef35a40059be533bfc66c39bfdfb6ba22c0a672f.tar.gz site-ef35a40059be533bfc66c39bfdfb6ba22c0a672f.zip |
Improve render.js code
Diffstat (limited to 'src/_mixin')
-rw-r--r-- | src/_mixin/menu.pug | 7 |
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) |