aboutsummaryrefslogtreecommitdiff
path: root/src/Documentation/_markdown.pug
diff options
context:
space:
mode:
Diffstat (limited to 'src/Documentation/_markdown.pug')
-rw-r--r--src/Documentation/_markdown.pug22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Documentation/_markdown.pug b/src/Documentation/_markdown.pug
new file mode 100644
index 0000000..ea23f15
--- /dev/null
+++ b/src/Documentation/_markdown.pug
@@ -0,0 +1,22 @@
+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
+ strong
+ a(href="/Documentation") Documentation
+ +menu(root.children.find(e => e.nice_name == "Documentation"))
+
+ main.spacing
+ != markdown