wikijs-fork/server/views/page.pug

31 lines
761 B
Plaintext
Raw Normal View History

extends master.pug
block head
2019-01-26 02:29:34 +00:00
if injectCode.css
style(type='text/css')!= injectCode.css
if injectCode.head
!= injectCode.head
block body
#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
2018-08-20 05:02:57 +00:00
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()
2020-05-08 22:48:07 +00:00
toc=Buffer.from(page.toc).toString('base64')
2019-01-26 23:35:56 +00:00
:page-id=page.id
2020-05-08 22:48:07 +00:00
sidebar=Buffer.from(JSON.stringify(sidebar)).toString('base64')
2020-04-13 01:19:22 +00:00
nav-mode=config.nav.mode
2018-08-20 05:02:57 +00:00
)
template(slot='contents')
2020-04-27 01:04:08 +00:00
div!= page.render
2019-01-26 02:29:34 +00:00
if injectCode.body
!= injectCode.body