baseof.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {{ $themeStyleDefault := "light.css" -}}
  2. <!DOCTYPE html>
  3. <html lang="{{ .Site.LanguageCode }}">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width">
  7. {{- if isset .Site.Params "onionlocation" }}
  8. <meta http-equiv="onion-location" content="{{ urls.JoinPath .Site.Params.OnionLocation .RelPermalink }}">
  9. {{- end }}
  10. <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
  11. <link rel="stylesheet" href="{{ "css/styles.css" | relURL }}">
  12. <link id="theme_css" rel="stylesheet" href="{{ "css/themes" | relURL }}/{{ .Site.Params.ThemeStyle | default $themeStyleDefault }}">
  13. {{- if .Site.Params.ThemeStyleSwitcher }}
  14. <script src="{{ "js/theme-switcher.js" | relURL }}"></script>
  15. {{- end }}
  16. </head>
  17. <body>
  18. <input class="show-hide-menu-input" style="display:none;" autocomplete="off" type="checkbox" id="toggle-1">
  19. <label class="overlay" for="toggle-1"></label>
  20. <div class="main">
  21. <header class="header">
  22. <div class="header-content">
  23. <div class="title">
  24. <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
  25. </div>
  26. <div>
  27. <div class="header-right">
  28. {{- if .Site.Params.ThemeStyleSwitcher }}
  29. <div id="change-theme-button" style="display:none;" class="clickable-header-label" onclick="toggle_theme()">
  30. <img class="color-adapting-image" width="30" src="" alt="change theme button">
  31. </div>
  32. {{- end }}
  33. <label id="show-hide-menu-label" class="clickable-header-label" for="toggle-1">
  34. <img class="color-adapting-image" width="30" src="{{ "images/hamburger.svg" | relURL }}" alt="menu button">
  35. </label>
  36. </div>
  37. {{- if .Site.Menus.main }}
  38. <div class="dont-show">
  39. <p>
  40. Links:
  41. </p>
  42. </div>
  43. <ul class="links">
  44. {{- range .Site.Menus.main.ByWeight }}
  45. <li><a href="{{ .URL }}">{{ .Name }}</a></li>
  46. {{- end }}
  47. </ul>
  48. {{- end }}
  49. </div>
  50. </div>
  51. </header>
  52. <main class="body">
  53. <div class="body-content">
  54. {{- block "main" . }}{{ end }}
  55. </div>
  56. </main>
  57. </div>
  58. {{- if .Site.Params.FooterText }}
  59. <hr class="dont-show">
  60. <footer class="footer">
  61. <p>{{ .Site.Params.FooterText | markdownify }}</p>
  62. </footer>
  63. {{- end }}
  64. </body>
  65. </html>