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.

71 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. .nav-item
  12. a.button.is-outlined.btn-move-prompt.is-hidden
  13. i.icon-shuffle
  14. span Move
  15. a.button.is-outlined(href='/source/' + pageData.meta.path)
  16. i.icon-loader
  17. span Source
  18. a.button(href='/edit/' + pageData.meta.path)
  19. i.icon-document-text
  20. span Edit
  21. a.button.btn-create-prompt
  22. i.icon-plus
  23. span Create
  24. block content
  25. #page-type-view(data-entrypath=pageData.meta.path)
  26. .container.is-fluid
  27. .columns.is-gapless
  28. .column.is-narrow.is-hidden-touch.sidebar
  29. aside
  30. .sidebar-label
  31. i.icon-th-small
  32. span Navigation
  33. ul.sidebar-menu
  34. li
  35. a(href='/')
  36. i.icon-home
  37. span Home
  38. if pageData.parent
  39. li
  40. a(href='/' + pageData.parent.path)
  41. i.icon-reply
  42. span= pageData.parent.title
  43. li
  44. a(href='/admin')
  45. i.icon-head
  46. span Account
  47. aside.stickyscroll(data-margin-top=40)
  48. .sidebar-label
  49. i.icon-th-list
  50. span Contents
  51. ul.sidebar-menu
  52. li: a(href='#root', title='Start') Start
  53. +tocMenu(pageData.tree)
  54. .column
  55. .hero
  56. h1.title#title= pageData.meta.title
  57. if pageData.meta.subtitle
  58. h2.subtitle= pageData.meta.subtitle
  59. .content.mkcontent
  60. != pageData.html
  61. include ../modals/create.pug
  62. include ../modals/move.pug