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.

42 lines
1.3 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. edit-shortcuts=Buffer.from(JSON.stringify(config.editShortcuts)).toString('base64')
  31. filename=pageFilename
  32. )
  33. template(slot='contents')
  34. div!= page.render
  35. template(slot='comments')
  36. div!= comments.main
  37. if injectCode.body
  38. != injectCode.body
  39. if config.features.featurePageComments
  40. != comments.body