2018-08-11 17:16:56 -05:00
|
|
|
extends master.pug
|
2018-08-08 23:07:15 -05:00
|
|
|
|
|
|
|
block head
|
2019-01-25 20:29:34 -06:00
|
|
|
if injectCode.css
|
|
|
|
style(type='text/css')!= injectCode.css
|
|
|
|
if injectCode.head
|
|
|
|
!= injectCode.head
|
2020-05-16 21:46:05 -05:00
|
|
|
if config.features.featurePageComments
|
|
|
|
!= comments.head
|
2018-08-08 23:07:15 -05:00
|
|
|
|
|
|
|
block body
|
2018-08-11 17:16:56 -05:00
|
|
|
#root
|
2018-08-20 00:02:57 -05:00
|
|
|
page(
|
|
|
|
locale=page.localeCode
|
|
|
|
path=page.path
|
|
|
|
title=page.title
|
|
|
|
description=page.description
|
2019-09-02 17:32:33 -05:00
|
|
|
:tags=page.tags
|
2018-08-20 00:02:57 -05:00
|
|
|
created-at=page.createdAt
|
|
|
|
updated-at=page.updatedAt
|
|
|
|
author-name=page.authorName
|
2018-09-16 17:36:15 -05:00
|
|
|
:author-id=page.authorId
|
2021-04-01 23:39:11 -05:00
|
|
|
editor=page.editorKey
|
2018-12-01 22:03:14 -06:00
|
|
|
:is-published=page.isPublished.toString()
|
2020-05-08 17:48:07 -05:00
|
|
|
toc=Buffer.from(page.toc).toString('base64')
|
2019-01-26 17:35:56 -06:00
|
|
|
:page-id=page.id
|
2020-05-08 17:48:07 -05:00
|
|
|
sidebar=Buffer.from(JSON.stringify(sidebar)).toString('base64')
|
2020-04-12 20:19:22 -05:00
|
|
|
nav-mode=config.nav.mode
|
2020-05-16 21:46:05 -05:00
|
|
|
comments-enabled=config.features.featurePageComments
|
2020-06-19 17:54:05 -05:00
|
|
|
effective-permissions=Buffer.from(JSON.stringify(effectivePermissions)).toString('base64')
|
2020-05-16 21:46:05 -05:00
|
|
|
comments-external=comments.codeTemplate
|
2022-09-20 15:55:05 -05:00
|
|
|
edit-shortcuts=Buffer.from(JSON.stringify(config.editShortcuts)).toString('base64')
|
|
|
|
filename=pageFilename
|
2018-08-20 00:02:57 -05:00
|
|
|
)
|
2019-05-24 21:47:45 -05:00
|
|
|
template(slot='contents')
|
2020-04-26 20:04:08 -05:00
|
|
|
div!= page.render
|
2020-05-16 21:46:05 -05:00
|
|
|
template(slot='comments')
|
|
|
|
div!= comments.main
|
2019-01-25 20:29:34 -06:00
|
|
|
if injectCode.body
|
|
|
|
!= injectCode.body
|
2020-05-16 21:46:05 -05:00
|
|
|
if config.features.featurePageComments
|
|
|
|
!= comments.body
|