summaryrefslogtreecommitdiff
path: root/themes/CodeIT/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2021-02-18 22:21:36 +0100
committerChristoph Cullmann <cullmann@kde.org>2021-02-18 22:21:36 +0100
commit0c7cb4486a89ec6fe9680e6569ef41d4b82d557d (patch)
tree081941052bcab0caf69487b6bf5ab2df5deb3b7b /themes/CodeIT/layouts/_default/baseof.html
parent640572ecab69291d2c266de2011b795a861e7c21 (diff)
use maintained theme
Diffstat (limited to 'themes/CodeIT/layouts/_default/baseof.html')
-rw-r--r--themes/CodeIT/layouts/_default/baseof.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/themes/CodeIT/layouts/_default/baseof.html b/themes/CodeIT/layouts/_default/baseof.html
new file mode 100644
index 0000000..4303015
--- /dev/null
+++ b/themes/CodeIT/layouts/_default/baseof.html
@@ -0,0 +1,51 @@
+{{- 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" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
+ <title>
+ {{- block "title" . }}{{ .Site.Title }}{{ end -}}
+ </title>
+
+ {{- partial "head/meta.html" . -}}
+ {{- partial "head/link.html" . -}}
+ {{- partial "head/seo.html" . -}}
+ </head>
+ <body header-desktop="{{ .Site.Params.header.desktopMode }}" 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"></i>
+ </a>
+
+ {{- /* comment button */ -}}
+ <a href="#" id="view-comments" class="fixed-button" title="{{ T `viewComments` }}">
+ <i class="fas fa-comment fa-fw"></i>
+ </a>
+ </div>
+
+ {{- /* Load JavaScript scripts and CSS */ -}}
+ {{- partial "assets.html" . -}}
+ </body>
+</html>