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.0 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. 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=page.toc
  21. :page-id=page.id
  22. )
  23. template(slot='sidebar')
  24. each navItem in sidebar
  25. if navItem.kind === 'link'
  26. v-list-tile(
  27. href=navItem.target
  28. )
  29. v-list-tile-avatar
  30. v-icon= navItem.icon
  31. v-list-tile-title= navItem.label
  32. else if navItem.kind === 'divider'
  33. v-divider.my-2
  34. else if navItem.kind === 'header'
  35. v-subheader.pl-4= navItem.label
  36. template(slot='contents')!= page.render
  37. if injectCode.body
  38. != injectCode.body