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.material-icons account_circle
  16. else
  17. a(href='/logout', title='Logout')
  18. i.material-icons logout
  19. .main
  20. .sidebar
  21. each navItem in sidebar
  22. if navItem.kind === 'link'
  23. a.sidebar-link(href=navItem.target)
  24. i.material-icons= navItem.icon
  25. span= navItem.label
  26. else if navItem.kind === 'divider'
  27. .sidebar-divider
  28. else if navItem.kind === 'header'
  29. .sidebar-title= navItem.label
  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
  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.material-icons arrow_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.material-icons arrow_right
  54. span= tocSubItem.title
  55. if tocIdx < page.toc.length - 1
  56. .toc-divider.inset
  57. if injectCode.body
  58. != injectCode.body