baseof.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!DOCTYPE html>
  2. <html
  3. lang="{{ .Site.Language.Lang }}"
  4. class="color-toggle-hidden"
  5. {{ if default false .Site.Params.geekdocDarkModeCode }}code-theme="dark"{{ end }}
  6. >
  7. <head>
  8. {{ partial "head/meta" . }}
  9. <title>
  10. {{- if eq .Kind "home" -}}
  11. {{ .Site.Title }}
  12. {{- else -}}
  13. {{ printf "%s | %s" (partial "utils/title" .) .Site.Title }}
  14. {{- end -}}
  15. </title>
  16. {{ partial "head/favicons" . }}
  17. {{ partial "head/rel-me" . }}
  18. {{ partial "head/microformats" . }}
  19. {{ partial "head/others" . }}
  20. {{ partial "head/custom" . }}
  21. </head>
  22. <body itemscope itemtype="https://schema.org/WebPage">
  23. {{ partial "svg-icon-symbols" . }}
  24. <div
  25. class="wrapper {{ if default false .Site.Params.geekdocDarkModeDim }}dark-mode-dim{{ end }}"
  26. >
  27. <input type="checkbox" class="hidden" id="menu-control" />
  28. <input type="checkbox" class="hidden" id="menu-header-control" />
  29. {{ $navEnabled := default true .Page.Params.geekdocNav }}
  30. {{ partial "site-header" (dict "Root" . "MenuEnabled" $navEnabled) }}
  31. <main class="container flex flex-even">
  32. {{ if $navEnabled }}
  33. <aside class="gdoc-nav">
  34. {{ partial "menu" . }}
  35. </aside>
  36. {{ end }}
  37. <div class="gdoc-page">
  38. {{ template "main" . }}
  39. {{ $showPrevNext := (default true .Site.Params.geekdocNextPrev) }}
  40. {{ if $showPrevNext }}
  41. <div class="gdoc-page__footer flex flex-wrap justify-between">
  42. {{ if .Site.Params.geekdocMenuBundle }}
  43. {{ partial "menu-bundle-np" . }}
  44. {{ else }}
  45. {{ partial "menu-filetree-np" . }}
  46. {{ end }}
  47. </div>
  48. {{ end }}
  49. </div>
  50. </main>
  51. {{ partial "site-footer" . }}
  52. </div>
  53. {{ partial "foot" . }}
  54. </body>
  55. </html>