commit 9d96f26661e4c9e231d8926515325b5eef835d32 parent 2ce5937a32b56c1eef2ee5ce7b4e138f1bf8f1a3 author: nathanael <nathanael@dalliard.ch> date: Fri, 10 Oct 2025 18:36:27 +0000 add sri diffstat:
| R | static/www.css -> assets/www.css | | | 0 | |
| M | layouts/baseof.html | | | 15 | +++++++-------- |
| M | layouts/home.html | | | 2 | +- |
3 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/static/www.css b/assets/www.css diff --git a/layouts/baseof.html b/layouts/baseof.html @@ -2,13 +2,12 @@ <html lang="de"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> -<link rel="stylesheet" href="/www.css"> +{{ with resources.Get "www.css" -}} +{{ with . | fingerprint -}} +<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}"> +{{- end -}} +{{ end }} <title>{{ block "title" . }}{{ .Title }}{{ end }}</title> -<header> -<a href="/"><svg><use xlink:href="/www.svg#logo"></use></svg></a> -</header> +<header><a href="/"><svg><use xlink:href="/www.svg#logo"></use></svg></a></header> <main id="{{ .Title }}">{{ block "main" . }}{{ end }}</main> -<footer> -<a href="mailto:nathanael@dalliard.ch">mail</a> -<a href="22b0bce1868386a2cc5b63cac61abf796ebd00e2.asc">pgp</a> -</footer> +<footer><a href="mailto:nathanael@dalliard.ch">mail</a><a href="22b0bce1868386a2cc5b63cac61abf796ebd00e2.asc">pgp</a></footer> diff --git a/layouts/home.html b/layouts/home.html @@ -1,3 +1,3 @@ {{ define "main" }} {{ .Content }} -{{ end }} +{{- end -}}