40 lines
1.1 KiB
Plaintext
Raw Normal View History

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