Ajout de style.
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-03-11 01:32:15 +01:00
parent 0f01088523
commit bd4da3196d
2 changed files with 198 additions and 0 deletions
+14
View File
@@ -4,5 +4,19 @@
<link rel="{{ .Rel }}" {{ printf "type=%q" .MediaType.Type | safeHTMLAttr }} href="{{ .Permalink }}" title="{{ site.Title }}" />
{{ end }}
{{ range resources.Match "*.scss" }}
{{ $targetPath := path.Join "css" (printf "%s.css" (path.BaseName .Name)) }}
{{ $opts := dict "transpiler" "libsass" "targetPath" $targetPath }}
{{ with . | toCSS $opts }}
{{ if hugo.IsDevelopment }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ else -}}
{{ with . | minify | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}
{{ end }}
{{ end }}
{{ end }}
<title>{{ block "title" . }}{{ .Site.Title }} - {{ .Title }}{{ end }}</title>
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}