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.

76 lines
1.8 KiB

  1. extends ../layout
  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. a.nav-item(href='#')
  11. | History
  12. a.nav-item(href='#')
  13. | Source
  14. span.nav-item
  15. a.button(href='/edit/' + pageData.meta.path)
  16. span.icon
  17. i.fa.fa-edit
  18. span Edit
  19. a.button.is-primary(href='#', onclick='$(".modal").addClass("is-active");')
  20. span.icon
  21. i.fa.fa-plus
  22. span Create
  23. block content
  24. section.section
  25. .container.is-fluid
  26. .columns
  27. .column.is-narrow.sd-menus.is-hidden-touch
  28. .box
  29. aside.menu(style= { 'min-width': '200px' })
  30. p.menu-label
  31. | Navigation
  32. ul.menu-list
  33. li
  34. a(href='/') Home
  35. if pageData.parent
  36. li
  37. a(href='/' + pageData.parent.path)= pageData.parent.title
  38. li
  39. a(href='/account') Account
  40. .box.stickyscroll(data-margin-top=70)
  41. aside.menu(style= { 'min-width': '200px' })
  42. p.menu-label
  43. | Contents
  44. ul.menu-list
  45. a(href='#root', title='Start') Start
  46. +tocMenu(pageData.tree)
  47. .column
  48. h1.title#title= pageData.meta.title
  49. if pageData.meta.subtitle
  50. h2.subtitle= pageData.meta.subtitle
  51. .content.mkcontent
  52. != pageData.html
  53. .modal
  54. .modal-background
  55. .modal-container
  56. .modal-content
  57. .card.is-fullwidth
  58. header.card-header
  59. p.card-header-title Create New Page
  60. .card-content
  61. .content
  62. label.label Enter the full path:
  63. p.control
  64. input.input(type='text', placeholder='/path', value='/storage/new-page')
  65. footer.card-footer
  66. a.card-footer-item(onclick='$(".modal").removeClass("is-active");') Discard
  67. a.card-footer-item Create