2016-09-05 19:23:49 -04:00
|
|
|
extends ../layout.pug
|
2016-08-17 23:52:23 -04:00
|
|
|
|
2016-08-20 17:20:53 -04:00
|
|
|
mixin tocMenu(ti)
|
2017-02-09 21:35:37 -05:00
|
|
|
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-20 17:20:53 -04:00
|
|
|
|
2016-08-27 21:46:10 -04:00
|
|
|
block rootNavRight
|
2017-02-09 21:35:37 -05:00
|
|
|
i.nav-item#notifload
|
|
|
|
.nav-item
|
|
|
|
if rights.write
|
|
|
|
a.button.is-outlined.btn-move-prompt.is-hidden
|
|
|
|
i.icon-shuffle
|
|
|
|
span Move
|
|
|
|
a.button.is-outlined(href='/source/' + pageData.meta.path)
|
|
|
|
i.icon-loader
|
|
|
|
span Source
|
|
|
|
if rights.write
|
|
|
|
a.button(href='/edit/' + pageData.meta.path)
|
|
|
|
i.icon-document-text
|
|
|
|
span Edit
|
|
|
|
a.button.btn-create-prompt
|
|
|
|
i.icon-plus
|
|
|
|
span Create
|
2016-08-27 21:46:10 -04:00
|
|
|
|
2016-08-17 23:52:23 -04:00
|
|
|
block content
|
|
|
|
|
2017-02-09 21:35:37 -05:00
|
|
|
#page-type-view(data-entrypath=pageData.meta.path)
|
2017-04-08 16:16:13 -04:00
|
|
|
.container.is-fluid.has-mkcontent
|
2017-02-09 21:35:37 -05:00
|
|
|
.columns.is-gapless
|
2016-08-17 23:52:23 -04:00
|
|
|
|
2017-02-09 21:35:37 -05:00
|
|
|
.column.is-narrow.is-hidden-touch.sidebar
|
2016-08-17 23:52:23 -04:00
|
|
|
|
2017-02-09 21:35:37 -05:00
|
|
|
aside
|
|
|
|
.sidebar-label
|
|
|
|
span Navigation
|
|
|
|
ul.sidebar-menu
|
|
|
|
li
|
|
|
|
a(href='/')
|
|
|
|
i.icon-home
|
|
|
|
span Home
|
2017-04-09 11:48:37 -04:00
|
|
|
li
|
|
|
|
a(href='/all')
|
|
|
|
i.icon-paper
|
|
|
|
span All Pages
|
2017-02-09 21:35:37 -05:00
|
|
|
if pageData.parent
|
|
|
|
li
|
|
|
|
a(href='/' + pageData.parent.path)
|
|
|
|
i.icon-reply
|
|
|
|
span= pageData.parent.title
|
|
|
|
if !isGuest
|
|
|
|
li
|
|
|
|
a(href='/admin')
|
|
|
|
i.icon-head
|
|
|
|
span Account
|
|
|
|
else
|
|
|
|
li
|
|
|
|
a(href='/login')
|
|
|
|
i.icon-unlock
|
|
|
|
span Login
|
2017-04-03 21:39:00 -04:00
|
|
|
aside.stickyscroll(data-margin-top=15)
|
2017-02-09 21:35:37 -05:00
|
|
|
.sidebar-label
|
2017-02-24 17:02:54 -05:00
|
|
|
span Page Contents
|
2017-02-09 21:35:37 -05:00
|
|
|
ul.sidebar-menu
|
2017-02-26 18:06:20 -05:00
|
|
|
li: a(href='#root', title='Top of Page') Top of Page
|
2017-02-09 21:35:37 -05:00
|
|
|
+tocMenu(pageData.tree)
|
2016-08-17 23:52:23 -04:00
|
|
|
|
2017-02-09 21:35:37 -05:00
|
|
|
.column
|
2016-08-20 17:20:53 -04:00
|
|
|
|
2017-02-09 21:35:37 -05:00
|
|
|
.hero
|
|
|
|
h1.title#title= pageData.meta.title
|
|
|
|
if pageData.meta.subtitle
|
|
|
|
h2.subtitle= pageData.meta.subtitle
|
|
|
|
.content.mkcontent
|
|
|
|
!= pageData.html
|
2016-08-17 23:52:23 -04:00
|
|
|
|
2017-02-09 21:35:37 -05:00
|
|
|
include ../modals/create.pug
|
|
|
|
include ../modals/move.pug
|