diff options
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/baseof.html | 14 |
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> |
