mirror of https://github.com/Requarks/wiki.git
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.
40 lines
1.0 KiB
40 lines
1.0 KiB
extends master.pug
|
|
|
|
block head
|
|
if injectCode.css
|
|
style(type='text/css')!= injectCode.css
|
|
if injectCode.head
|
|
!= injectCode.head
|
|
|
|
block body
|
|
#root
|
|
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
|
|
:author-id=page.authorId
|
|
:is-published=page.isPublished.toString()
|
|
:toc=page.toc
|
|
:page-id=page.id
|
|
)
|
|
template(slot='sidebar')
|
|
each navItem in sidebar
|
|
if navItem.kind === 'link'
|
|
v-list-tile(
|
|
href=navItem.target
|
|
)
|
|
v-list-tile-avatar
|
|
v-icon= navItem.icon
|
|
v-list-tile-title= navItem.label
|
|
else if navItem.kind === 'divider'
|
|
v-divider.my-2
|
|
else if navItem.kind === 'header'
|
|
v-subheader.pl-4= navItem.label
|
|
template(slot='contents')!= page.render
|
|
if injectCode.body
|
|
!= injectCode.body
|