mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.1 KiB
82 lines
2.1 KiB
8 years ago
|
extends ../layout.pug
|
||
8 years ago
|
|
||
8 years ago
|
mixin tocMenu(ti)
|
||
8 years ago
|
each node in ti
|
||
|
li
|
||
|
a(href='#' + node.anchor, title=node.content)= node.content
|
||
|
if node.nodes.length > 0
|
||
|
ul
|
||
|
+tocMenu(node.nodes)
|
||
8 years ago
|
|
||
8 years ago
|
block rootNavRight
|
||
8 years ago
|
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
|
||
8 years ago
|
|
||
8 years ago
|
block content
|
||
|
|
||
8 years ago
|
#page-type-view.page-type-container(data-entrypath=pageData.meta.path)
|
||
8 years ago
|
.container.is-fluid.has-mkcontent
|
||
8 years ago
|
.columns.is-gapless
|
||
8 years ago
|
|
||
8 years ago
|
.column.is-narrow.is-hidden-touch.sidebar
|
||
8 years ago
|
|
||
8 years ago
|
aside
|
||
|
.sidebar-label
|
||
|
span Navigation
|
||
|
ul.sidebar-menu
|
||
|
li
|
||
|
a(href='/')
|
||
|
i.icon-home
|
||
|
span Home
|
||
8 years ago
|
li
|
||
|
a(href='/all')
|
||
|
i.icon-paper
|
||
|
span All Pages
|
||
8 years ago
|
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
|
||
8 years ago
|
aside.stickyscroll(data-margin-top=15)
|
||
8 years ago
|
.sidebar-label
|
||
8 years ago
|
span Page Contents
|
||
8 years ago
|
ul.sidebar-menu
|
||
8 years ago
|
li: a(href='#root', title='Top of Page') Top of Page
|
||
8 years ago
|
+tocMenu(pageData.tree)
|
||
8 years ago
|
|
||
8 years ago
|
.column
|
||
8 years ago
|
|
||
8 years ago
|
.hero
|
||
|
h1.title#title= pageData.meta.title
|
||
|
if pageData.meta.subtitle
|
||
|
h2.subtitle= pageData.meta.subtitle
|
||
|
.content.mkcontent
|
||
|
!= pageData.html
|
||
8 years ago
|
|
||
8 years ago
|
include ../modals/create.pug
|
||
|
include ../modals/move.pug
|