wikijs-fork/views/pages/view.pug

70 lines
1.5 KiB
Plaintext
Raw Normal View History

extends ../layout.pug
2016-08-18 03:52:23 +00:00
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-28 01:46:10 +00:00
block rootNavRight
2016-08-28 15:27:05 +00:00
i.nav-item#notifload
2016-09-09 23:22:18 +00:00
a.nav-item.btn-move-prompt.is-hidden
| Move
a.nav-item(href='/source/' + pageData.meta.path)
2016-08-28 01:46:10 +00:00
| Source
span.nav-item
2016-11-21 01:09:50 +00:00
a.button.is-orange.is-outlined(href='/edit/' + pageData.meta.path)
i.fa.fa-edit
2016-08-28 01:46:10 +00:00
span Edit
2016-11-21 01:09:50 +00:00
a.button.is-light-blue.btn-create-prompt
i.fa.fa-plus
2016-08-28 01:46:10 +00:00
span Create
2016-08-18 03:52:23 +00:00
block content
2016-08-29 05:21:35 +00:00
#page-type-view(data-entrypath=pageData.meta.path)
2016-11-21 01:09:50 +00:00
.container.is-fluid
.columns.is-gapless
2016-08-18 03:52:23 +00:00
2016-11-21 01:09:50 +00:00
.column.is-narrow.is-hidden-touch.sidebar
2016-08-18 03:52:23 +00:00
2016-11-21 01:09:50 +00:00
aside
.sidebar-label
i.icon-th-small
span Navigation
ul.sidebar-menu
li
a(href='/')
i.icon-home
span Home
if pageData.parent
li
a(href='/' + pageData.parent.path)
i.icon-reply
span= pageData.parent.title
li
a(href='/admin')
i.icon-head
span Account
aside.stickyscroll(data-margin-top=40)
.sidebar-label
i.icon-th-list
span Contents
ul.sidebar-menu
li: a(href='#root', title='Start') Start
+tocMenu(pageData.tree)
2016-08-18 03:52:23 +00:00
2016-11-21 01:09:50 +00:00
.column
2016-11-21 01:09:50 +00:00
.hero
2016-08-28 15:27:05 +00:00
h1.title#title= pageData.meta.title
if pageData.meta.subtitle
h2.subtitle= pageData.meta.subtitle
2016-11-21 01:09:50 +00:00
.content.mkcontent
!= pageData.html
2016-08-18 03:52:23 +00:00
include ../modals/create.pug
2016-09-09 23:22:18 +00:00
include ../modals/move.pug