aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Documentation/_markdown.pug8
-rw-r--r--src/_layout.pug2
-rw-r--r--src/_mixin/menu.pug7
3 files changed, 9 insertions, 8 deletions
diff --git a/src/Documentation/_markdown.pug b/src/Documentation/_markdown.pug
index ea23f15..b5dcdf4 100644
--- a/src/Documentation/_markdown.pug
+++ b/src/Documentation/_markdown.pug
@@ -3,14 +3,6 @@ extends ../_layout.pug
prepend root
- title = element.nice_path[element.nice_path.length - 1]
-mixin menu(o)
- ul
- each val in o.children
- - if (val.type == 'folder')
- li
- a(href=val.url)= val.nice_name
- +menu(val)
-
block content
.container.spacing
nav
diff --git a/src/_layout.pug b/src/_layout.pug
index ffc905e..0a7f697 100644
--- a/src/_layout.pug
+++ b/src/_layout.pug
@@ -1,3 +1,5 @@
+include _mixin/menu.pug
+
block root
doctype html
head
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)