diff options
author | Christoph Cullmann <cullmann@kde.org> | 2022-08-14 19:01:21 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2022-08-14 19:01:21 +0200 |
commit | 51fb029ca27d67d7cd67352cdede45e5b25868f7 (patch) | |
tree | 6d8e34b2abdc757310ffe11189e926d017417bae /themes/LoveIt/layouts/_default/baseof.html | |
parent | 260b6803e78609e16ad3d59792f1681d9df0f1e4 (diff) |
switch back to LoveIt, other theme is deprectated
Diffstat (limited to 'themes/LoveIt/layouts/_default/baseof.html')
-rw-r--r-- | themes/LoveIt/layouts/_default/baseof.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/themes/LoveIt/layouts/_default/baseof.html b/themes/LoveIt/layouts/_default/baseof.html new file mode 100644 index 0000000..66a6c3c --- /dev/null +++ b/themes/LoveIt/layouts/_default/baseof.html @@ -0,0 +1,48 @@ +{{- partial "init.html" . -}} + +<!DOCTYPE html> +<html lang="{{ .Site.LanguageCode }}"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="robots" content="noodp" /> + <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title> + + {{- partial "head/meta.html" . -}} + {{- partial "head/link.html" . -}} + {{- partial "head/seo.html" . -}} + </head> + <body data-header-desktop="{{ .Site.Params.header.desktopMode }}" data-header-mobile="{{ .Site.Params.header.mobileMode }}"> + {{- /* Check theme isDark before body rendering */ -}} + {{- $theme := .Site.Params.defaulttheme -}} + <script type="text/javascript">(window.localStorage && localStorage.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('{{ $theme }}' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : '{{ $theme }}' === 'dark')) && document.body.setAttribute('theme', 'dark');</script> + + <div id="mask"></div> + + {{- /* Body wrapper */ -}} + <div class="wrapper"> + {{- partial "header.html" . -}} + <main class="main"> + <div class="container"> + {{- block "content" . }}{{ end -}} + </div> + </main> + {{- partial "footer.html" . -}} + </div> + + <div id="fixed-buttons"> + {{- /* top button */ -}} + <a href="#" id="back-to-top" class="fixed-button" title="{{ T `backToTop` }}"> + <i class="fas fa-arrow-up fa-fw" aria-hidden="true"></i> + </a> + + {{- /* comment button */ -}} + <a href="#" id="view-comments" class="fixed-button" title="{{ T `viewComments` }}"> + <i class="fas fa-comment fa-fw" aria-hidden="true"></i> + </a> + </div> + + {{- /* Load JavaScript scripts and CSS */ -}} + {{- partial "assets.html" . -}} + </body> +</html> |