commit 49fcd607a059dd7b08ca1bb9131371c4a54c7304 parent 43adc419a2ae4b46d9c26185dcb485c02b59710f author: nathanael <nathanael@dalliard.ch> date: Mon, 20 Oct 2025 06:25:49 +0000 max-width not home diffstat:
| M | assets/www.css | | | 65 | +---------------------------------------------------------------- |
| M | layouts/baseof.html | | | 7 | +++++++ |
2 files changed, 8 insertions(+), 64 deletions(-)
diff --git a/assets/www.css b/assets/www.css @@ -1,64 +1 @@ -:root { - --bg: #fff; - --fg: #000; - --deco: #ccc; -} -html { - margin: 1em auto; - padding: 0 1em; - max-width: 40em; - font-family: system-ui, sans-serif; - font-size: 1.25rem; - text-size-adjust: 100%; - background-color: var(--bg); - color: var(--fg); -} -header svg { - aspect-ratio: 48.696 / 29.368; - margin-top: 1em; - width: 42px; -} -nav ul { - list-style-type: none; - display: flex; - padding: 0; -} -nav ul li { - margin-right: .5rem; -} -nav a { - color: #888; - font-size: 0.8rem; - line-height: 1.2rem; -} -nav a { - text-decoration-color: var(--deco); -} -main { - margin: 3rem 0; -} -a { - color: var(--fg); - text-decoration-thickness: 1px; - text-underline-offset: 5px; -} -a[href^="http"]:not([href*="dalliard.ch"]):not([href*="localhost"])::after { - content: " ↗"; - white-space: nowrap; -} -p { - line-height: 1.8rem; -} -td:nth-child(3) { - padding-left: 1rem; -} -#start { - margin: 0; -} -@media (prefers-color-scheme: dark) { - :root { - --bg: #000; - --fg: #fff; - --deco: #555; - } -} +body { max-width: 72ch; } diff --git a/layouts/baseof.html b/layouts/baseof.html @@ -1,6 +1,13 @@ <!doctype html> <html lang="en"> <link rel="icon" href="data:,"> +{{ if not .IsHome }} +{{ with resources.Get "www.css" }} +{{ with . | minify | fingerprint }} +<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}"> +{{ end }} +{{ end }} +{{ end }} <meta charset="utf-8"> <meta name="color-scheme" content="dark light"> <meta name="viewport" content="width=device-width, initial-scale=1">