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.

30 lines
761 B

  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. block body
  8. #root
  9. page(
  10. locale=page.localeCode
  11. path=page.path
  12. title=page.title
  13. description=page.description
  14. :tags=page.tags
  15. created-at=page.createdAt
  16. updated-at=page.updatedAt
  17. author-name=page.authorName
  18. :author-id=page.authorId
  19. :is-published=page.isPublished.toString()
  20. toc=Buffer.from(page.toc).toString('base64')
  21. :page-id=page.id
  22. sidebar=Buffer.from(JSON.stringify(sidebar)).toString('base64')
  23. nav-mode=config.nav.mode
  24. )
  25. template(slot='contents')
  26. div!= page.render
  27. if injectCode.body
  28. != injectCode.body