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.

39 lines
1.1 KiB

  1. extends master.pug
  2. block head
  3. if injectCode.css
  4. style(type='text/css')!= injectCode.css
  5. if injectCode.head
  6. != injectCode.head
  7. if config.features.featurePageComments
  8. != comments.head
  9. block body
  10. #root
  11. page(
  12. locale=page.localeCode
  13. path=page.path
  14. title=page.title
  15. description=page.description
  16. :tags=page.tags
  17. created-at=page.createdAt
  18. updated-at=page.updatedAt
  19. author-name=page.authorName
  20. :author-id=page.authorId
  21. :is-published=page.isPublished.toString()
  22. toc=Buffer.from(page.toc).toString('base64')
  23. :page-id=page.id
  24. sidebar=Buffer.from(JSON.stringify(sidebar)).toString('base64')
  25. nav-mode=config.nav.mode
  26. comments-enabled=config.features.featurePageComments
  27. effective-permissions=Buffer.from(JSON.stringify(effectivePermissions)).toString('base64')
  28. comments-external=comments.codeTemplate
  29. )
  30. template(slot='contents')
  31. div!= page.render
  32. template(slot='comments')
  33. div!= comments.main
  34. if injectCode.body
  35. != injectCode.body
  36. if config.features.featurePageComments
  37. != comments.body