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.

78 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. i.nav-item#notifload
  11. a.nav-item(href='#')
  12. | History
  13. a.nav-item(href='#')
  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(href='#', onclick='$(".modal").addClass("is-active");')
  21. span.icon
  22. i.fa.fa-plus
  23. span Create
  24. block content
  25. #page-type-view
  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. .modal
  56. .modal-background
  57. .modal-container
  58. .modal-content
  59. .card.is-fullwidth
  60. header.card-header
  61. p.card-header-title Create New Page
  62. .card-content
  63. .content
  64. label.label Enter the full path:
  65. p.control
  66. input.input(type='text', placeholder='/path', value='/storage/new-page')
  67. footer.card-footer
  68. a.card-footer-item(onclick='$(".modal").removeClass("is-active");') Discard
  69. a.card-footer-item.featured Create