mirror of https://github.com/requarks/wiki
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.
31 lines
761 B
31 lines
761 B
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=Buffer.from(page.toc).toString('base64')
|
|
:page-id=page.id
|
|
sidebar=Buffer.from(JSON.stringify(sidebar)).toString('base64')
|
|
nav-mode=config.nav.mode
|
|
)
|
|
template(slot='contents')
|
|
div!= page.render
|
|
if injectCode.body
|
|
!= injectCode.body
|