diff options
Diffstat (limited to 'layouts/baseof.html')
| -rw-r--r-- | layouts/baseof.html | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/layouts/baseof.html b/layouts/baseof.html new file mode 100644 index 0000000..fb923a5 --- /dev/null +++ b/layouts/baseof.html @@ -0,0 +1,72 @@ +<!DOCTYPE html>
+<html>
+<head>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>{{ .Page.Title }}</title>
+ <link rel="stylesheet" href="/css/main.css"/>
+ <link rel="stylesheet" href="/css/chroma.css"/>
+ {{ if isset .Site.Params "favicons" }}
+ {{ $fileDict := dict
+ ".svg" "svg+xml"
+ ".png" "png"
+ ".ico" "x-icon"
+ }}
+ {{ range .Site.Params.favicons }}
+ <link rel="icon"
+ type="image/{{ index $fileDict ( path.Ext . ) }}"
+ href="{{ . }}">
+ {{ end }}
+ {{ end }}
+ {{ if isset .Params "tags" }}
+ <meta name="keywords" content="{{ delimit .Params.tags ", " }}">
+ {{ end }}
+ {{ if isset .Params "htmlhead" }}
+ {{ range .Params.htmlHead }}
+ {{ . | safeHTML }}
+ {{ end }}
+ {{ end }}
+ <style>
+ :root {
+ {{ with merge .Site.Params .Params }}
+ --theme-color-check: {{ int .themeColorCheck }};
+ --accent-color-check: {{ int .accentColorCheck }};
+ --theme-hue: {{ .themeHue }};
+ --accent-hue: {{ .accentHue }};
+ {{ end }}
+ }
+ </style>
+</head>
+<body>
+ <div class="dark-mode-container">
+ <input type="checkbox" id="--dark-theme-check">Dark Mode</input>
+ </div>
+ {{ block "main" . }}
+ {{ end }}
+ {{ if isset .Params "tags" }}
+ <nav class="nav-footer">
+ <hr>
+ Related:
+ {{ range .Params.tags }}
+ <a href="/tags/{{ . }}">{{ . }}</a>
+ {{ if not (eq . (index (last 1 $.Params.tags) 0)) }} | {{ end }}
+ {{ end }}
+ </nav>
+ {{ end }}
+ <nav class="nav-footer">
+ <hr>
+ <a href="/">Home Page</a>
+ {{ range where .Site.Sections "Section" "about" }}
+ | <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
+ {{ end }}
+ | <a href="#">Top of Page</a>
+ <hr>
+ </nav>
+ <script src="/css/dark-mode.js"></script>
+ {{ if isset .Params "htmlfoot" }}
+ {{ range .Params.htmlFoot }}
+ {{ . | safeHTML }}
+ {{ end }}
+ {{ end }}
+</body>
+</html>
+
|