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.

65 lines
1.5 KiB

  1. extends ../layout.pug
  2. mixin tocMenu(ti)
  3. each node in ti
  4. li
  5. a(href='#' + node.anchor, title=node.content)= node.content
  6. if node.nodes.length > 0
  7. ul
  8. +tocMenu(node.nodes)
  9. block rootNavRight
  10. i.nav-item#notifload
  11. a.nav-item.btn-move-prompt.is-hidden
  12. | Move
  13. a.nav-item(href='/source/' + pageData.meta.path)
  14. | Source
  15. span.nav-item
  16. a.button(href='/edit/' + pageData.meta.path)
  17. span.icon
  18. i.fa.fa-edit
  19. span Edit
  20. a.button.is-primary.btn-create-prompt
  21. span.icon
  22. i.fa.fa-plus
  23. span Create
  24. block content
  25. #page-type-view(data-entrypath=pageData.meta.path)
  26. section.section
  27. .container.is-fluid
  28. .columns
  29. .column.is-narrow.sd-menus.is-hidden-touch
  30. .box
  31. aside.menu(style= { 'min-width': '200px' })
  32. p.menu-label
  33. | Navigation
  34. ul.menu-list
  35. li
  36. a(href='/') Home
  37. if pageData.parent
  38. li
  39. a(href='/' + pageData.parent.path)= pageData.parent.title
  40. li
  41. a(href='/account') Account
  42. .box.stickyscroll(data-margin-top=70)
  43. aside.menu(style= { 'min-width': '200px' })
  44. p.menu-label
  45. | Contents
  46. ul.menu-list
  47. a(href='#root', title='Start') Start
  48. +tocMenu(pageData.tree)
  49. .column
  50. h1.title#title= pageData.meta.title
  51. if pageData.meta.subtitle
  52. h2.subtitle= pageData.meta.subtitle
  53. .content.mkcontent
  54. != pageData.html
  55. include ../modals/create.pug
  56. include ../modals/move.pug