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
2.1 KiB

  1. extends master.pug
  2. block head
  3. if injectCode.css
  4. style(type='text/css')!= injectCode.css
  5. if injectCode.head
  6. != injectCode.head
  7. block body
  8. #root
  9. .header
  10. span.header-title= siteConfig.title
  11. span.header-deprecated!= t('outdatedBrowserWarning', { modernBrowser: '<a href="https://bestvpn.org/outdatedbrowser/en" rel="nofollow">' + t('modernBrowser') + '</a>', interpolation: { escapeValue: false } })
  12. span.header-login
  13. if !isAuthenticated
  14. a(href='/login', title='Login')
  15. i.mdi.mdi-account-circle
  16. else
  17. a(href='/logout', title='Logout')
  18. i.mdi.mdi-logout
  19. .main
  20. .sidebar
  21. each navItem in sidebar
  22. if navItem.k === 'link'
  23. a.sidebar-link(href=navItem.t)
  24. i.mdi(class=navItem.c)
  25. span= navItem.l
  26. else if navItem.k === 'divider'
  27. .sidebar-divider
  28. else if navItem.k === 'header'
  29. .sidebar-title= navItem.l
  30. .main-container
  31. .page-header
  32. .page-header-left
  33. h1= page.title
  34. h2= page.description
  35. //- .page-header-right
  36. //- .page-header-right-title Last edited by
  37. //- .page-header-right-author= page.authorName
  38. //- .page-header-right-updated= page.updatedAt
  39. .page-contents.v-content
  40. .contents
  41. div!= page.render
  42. if page.toc.length
  43. .toc
  44. .toc-title= t('page.toc')
  45. each tocItem, tocIdx in page.toc
  46. a.toc-tile(href=tocItem.anchor)
  47. i.mdi.mdi-chevron-right
  48. span= tocItem.title
  49. if tocIdx < page.toc.length - 1 || tocItem.children.length
  50. .toc-divider
  51. each tocSubItem in tocItem.children
  52. a.toc-tile.inset(href=tocSubItem.anchor)
  53. i.mdi.mdi-chevron-right
  54. span= tocSubItem.title
  55. if tocIdx < page.toc.length - 1
  56. .toc-divider.inset
  57. if injectCode.body
  58. != injectCode.body