wikijs-fork/views/pages/view.pug

44 lines
869 B
Plaintext
Raw Normal View History

2016-08-18 03:52:23 +00:00
extends ../layout
mixin tocMenu(ti)
each node in ti
li
a(href='#' + node.anchor, title=node.content)= node.content
if node.nodes.length > 0
ul
+tocMenu(node.nodes)
2016-08-18 03:52:23 +00:00
block content
section.section
.container.is-fluid
.columns
.column.is-narrow
.box
aside.menu(style= { 'min-width': '200px' })
p.menu-label
| Navigation
ul.menu-list
li
a(href='/') Home
2016-08-18 03:52:23 +00:00
li
a(href='/account') Account
.box.stickyscroll(data-margin-top=70)
aside.menu(style= { 'min-width': '200px' })
p.menu-label
| Contents
ul.menu-list
a(href='#root', title='Start') Start
+tocMenu(pageData.tree)
2016-08-18 03:52:23 +00:00
.column
h1.title#title= pageData.title
if pageData.subtitle
h2.subtitle= pageData.subtitle
.content.mkcontent
!= pageData.html
2016-08-18 03:52:23 +00:00