others.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {{- if default true .Site.Params.geekdocDarkModeToggle }}
  2. <script src="{{ index (index .Site.Data.assets "colortheme.js") "src" | relURL }}"></script>
  3. {{- end }}
  4. <script src="{{ index (index .Site.Data.assets "main.js") "src" | relURL }}"></script>
  5. <link
  6. rel="preload"
  7. as="font"
  8. href="{{ "fonts/Metropolis.woff2" | relURL }}"
  9. type="font/woff2"
  10. crossorigin="anonymous"
  11. />
  12. <link
  13. rel="preload"
  14. as="font"
  15. href="{{ "fonts/LiberationSans.woff2" | relURL }}"
  16. type="font/woff2"
  17. crossorigin="anonymous"
  18. />
  19. <link
  20. rel="preload"
  21. href="{{ index (index .Site.Data.assets "main.scss") "src" | relURL }}"
  22. as="style"
  23. />
  24. <link
  25. rel="stylesheet"
  26. href="{{ index (index .Site.Data.assets "main.scss") "src" | relURL }}"
  27. media="all"
  28. />
  29. <link
  30. rel="preload"
  31. href="{{ index (index .Site.Data.assets "mobile.scss") "src" | relURL }}"
  32. as="style"
  33. />
  34. <link
  35. rel="stylesheet"
  36. href="{{ index (index .Site.Data.assets "mobile.scss") "src" | relURL }}"
  37. media="screen and (max-width: 45rem)"
  38. />
  39. <link
  40. rel="preload"
  41. href="{{ index (index .Site.Data.assets "print.scss") "src" | relURL }}"
  42. as="style"
  43. />
  44. <link
  45. rel="stylesheet"
  46. href="{{ index (index .Site.Data.assets "print.scss") "src" | relURL }}"
  47. media="print"
  48. />
  49. <link
  50. rel="preload"
  51. href="{{ index (index .Site.Data.assets "custom.css") "src" | relURL }}"
  52. as="style"
  53. />
  54. <link
  55. rel="stylesheet"
  56. href="{{ index (index .Site.Data.assets "custom.css") "src" | relURL }}"
  57. media="all"
  58. />
  59. {{- with .OutputFormats.Get "html" }}
  60. {{ printf `<link href=%q rel=%q type=%q />` .Permalink .Rel .MediaType.Type | safeHTML }}
  61. {{- end }}
  62. {{- if (default false $.Site.Params.geekdocOverwriteHTMLBase) }}
  63. <base href="{{ .Site.Home.Permalink }}" />
  64. {{- end }}
  65. {{ printf "<!-- %s -->" "Made with Geekdoc theme https://github.com/thegeeklab/hugo-geekdoc" | safeHTML }}