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.

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