aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-06-02 17:49:01 +0800
committerverdant <im@verdant.ee>2026-06-02 17:49:01 +0800
commit08040ab09f5ceb7f19115be404c96c452e5b32fa (patch)
treef0fa7fa374617bf46c37cdd776eb7eb6451f6e5c /layouts/_default/baseof.html
parenta6fd5bd05a3432cbf2308070aa08cde77ae7cf5b (diff)
downloadblog-08040ab09f5ceb7f19115be404c96c452e5b32fa.tar.gz
blog-08040ab09f5ceb7f19115be404c96c452e5b32fa.zip
Add dark mode and adjust the font size larger
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html14
1 files changed, 10 insertions, 4 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 7736f27..65d2a38 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -9,7 +9,7 @@
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ printf "%s | %s" .Title .Site.Title }}{{ end }}</title>
<style>
body {
- font-family: monospace;
+ font: 1.1rem monospace;
line-height: 1.7;
max-width: 760px;
margin: 40px auto;
@@ -25,6 +25,12 @@
img {
max-width: 100%;
}
+
+ @media (prefers-color-scheme: dark) {
+ html {
+ color-scheme: dark;
+ }
+ }
</style>
{{- partial "favicon.html" . -}}
{{- partial "seo_tags.html" . -}}
@@ -38,9 +44,9 @@
</head>
<body>
- <main>{{ block "main" . }}{{ end }}
- <footer>{{ partial "footer.html" . }}</footer>
- </main>
+ <main>{{ block "main" . }}{{ end }}
+ <footer>{{ partial "footer.html" . }}</footer>
+ </main>
{{- partial "custom_body.html" . -}}
</body>