aboutsummaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-06-06 12:10:44 +0800
committerverdant <im@verdant.ee>2026-06-06 12:10:44 +0800
commit537ef605e2fcca07c8d89994d043d12fc35b4dd7 (patch)
treec08be4ee2f039e946ea6ae45955a21167f8475e5 /layouts
parent3596604fb262243031570da978e204a86b8bcb47 (diff)
downloadblog-537ef605e2fcca07c8d89994d043d12fc35b4dd7.tar.gz
blog-537ef605e2fcca07c8d89994d043d12fc35b4dd7.zip
Move CSS style to /layouts/partials/style.html
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html26
1 files changed, 1 insertions, 25 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 65d2a38..56da54c 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -7,31 +7,7 @@
<meta http-equiv=X-Clacks-Overhead content="GNU Terry Pratchett">
<meta name=referrer content="no-referrer-when-downgrade">
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ printf "%s | %s" .Title .Site.Title }}{{ end }}</title>
- <style>
- body {
- font: 1.1rem monospace;
- line-height: 1.7;
- max-width: 760px;
- margin: 40px auto;
- padding: 0 20px;
- }
-
- pre {
- border: 1px dashed #555;
- padding: 12px;
- overflow-x: auto;
- }
-
- img {
- max-width: 100%;
- }
-
- @media (prefers-color-scheme: dark) {
- html {
- color-scheme: dark;
- }
- }
- </style>
+ {{- partial "style.html" . -}}
{{- partial "favicon.html" . -}}
{{- partial "seo_tags.html" . -}}