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.

40 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. editor=page.editorKey
  22. :is-published=page.isPublished.toString()
  23. toc=Buffer.from(page.toc).toString('base64')
  24. :page-id=page.id
  25. sidebar=Buffer.from(JSON.stringify(sidebar)).toString('base64')
  26. nav-mode=config.nav.mode
  27. comments-enabled=config.features.featurePageComments
  28. effective-permissions=Buffer.from(JSON.stringify(effectivePermissions)).toString('base64')
  29. comments-external=comments.codeTemplate
  30. )
  31. template(slot='contents')
  32. div!= page.render
  33. template(slot='comments')
  34. div!= comments.main
  35. if injectCode.body
  36. != injectCode.body
  37. if config.features.featurePageComments
  38. != comments.body