2018-08-11 22:16:56 +00:00
|
|
|
extends master.pug
|
2018-08-09 04:07:15 +00:00
|
|
|
|
|
|
|
block head
|
2019-01-26 02:29:34 +00:00
|
|
|
if injectCode.css
|
|
|
|
style(type='text/css')!= injectCode.css
|
|
|
|
if injectCode.head
|
|
|
|
!= injectCode.head
|
2018-08-09 04:07:15 +00:00
|
|
|
|
|
|
|
block body
|
2018-08-11 22:16:56 +00:00
|
|
|
#root
|
2018-08-20 05:02:57 +00:00
|
|
|
page(
|
|
|
|
locale=page.localeCode
|
|
|
|
path=page.path
|
|
|
|
title=page.title
|
|
|
|
description=page.description
|
|
|
|
tags=page.tags
|
|
|
|
created-at=page.createdAt
|
|
|
|
updated-at=page.updatedAt
|
|
|
|
author-name=page.authorName
|
2018-09-16 22:36:15 +00:00
|
|
|
:author-id=page.authorId
|
2018-12-02 04:03:14 +00:00
|
|
|
:is-published=page.isPublished.toString()
|
2018-11-18 04:03:58 +00:00
|
|
|
:toc=page.toc
|
2019-01-26 23:35:56 +00:00
|
|
|
:page-id=page.id
|
2018-08-20 05:02:57 +00:00
|
|
|
)
|
2018-11-11 18:54:33 +00:00
|
|
|
template(slot='sidebar')
|
|
|
|
each navItem in sidebar
|
|
|
|
if navItem.kind === 'link'
|
2019-07-29 04:50:03 +00:00
|
|
|
v-list-item(
|
2018-11-11 18:54:33 +00:00
|
|
|
href=navItem.target
|
|
|
|
)
|
2019-07-29 04:50:03 +00:00
|
|
|
v-list-item-avatar
|
2018-11-11 18:54:33 +00:00
|
|
|
v-icon= navItem.icon
|
2019-07-29 04:50:03 +00:00
|
|
|
v-list-item-title= navItem.label
|
2018-11-11 18:54:33 +00:00
|
|
|
else if navItem.kind === 'divider'
|
|
|
|
v-divider.my-2
|
|
|
|
else if navItem.kind === 'header'
|
|
|
|
v-subheader.pl-4= navItem.label
|
2019-05-25 02:47:45 +00:00
|
|
|
template(slot='contents')
|
|
|
|
div(v-pre)!= page.render
|
2019-01-26 02:29:34 +00:00
|
|
|
if injectCode.body
|
|
|
|
!= injectCode.body
|