wikijs-fork/server/views/page.pug
2018-11-17 23:03:58 -05:00

34 lines
882 B
Plaintext

extends master.pug
block 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
:toc=page.toc
)
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