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.

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