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.

33 lines
893 B

  1. extends master.pug
  2. block head
  3. block body
  4. #root
  5. page(
  6. locale=page.localeCode
  7. path=page.path
  8. title=page.title
  9. description=page.description
  10. tags=page.tags
  11. created-at=page.createdAt
  12. updated-at=page.updatedAt
  13. author-name=page.authorName
  14. :author-id=page.authorId
  15. :is-published=page.isPublished.toString()
  16. :toc=page.toc
  17. )
  18. template(slot='sidebar')
  19. each navItem in sidebar
  20. if navItem.kind === 'link'
  21. v-list-tile(
  22. href=navItem.target
  23. )
  24. v-list-tile-avatar
  25. v-icon= navItem.icon
  26. v-list-tile-title= navItem.label
  27. else if navItem.kind === 'divider'
  28. v-divider.my-2
  29. else if navItem.kind === 'header'
  30. v-subheader.pl-4= navItem.label
  31. template(slot='contents')!= page.render