tailwind4 maybe

This commit is contained in:
2026-01-08 17:45:30 +01:00
parent 96945c8703
commit 6ec90ff036
7 changed files with 65 additions and 6 deletions
@@ -0,0 +1,12 @@
{{ with resources.Get "css/main.css" }}
{{ $opts := dict "minify" (not hugo.IsDevelopment) }}
{{ with . | css.TailwindCSS $opts }}
{{ if hugo.IsDevelopment }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ else }}
{{ with . | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}
{{ end }}
{{ end }}
{{ end }}
+3 -1
View File
@@ -3,7 +3,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Knäckebootcrew</title>
{{ $styles := resources.Get "style.css" }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" />
{{ with (templates.Defer (dict "key" "global")) }}
{{ partial "css.html" . }}
{{ end }}
<link rel="stylesheet" href="/css/lightbox.min.css" />
<link rel="me" href="https://social.kollar.cloud/@kossa" />
</head>