Déplacement, renommage de style.scss, simplification de l'inclusion du style.

This commit is contained in:
2026-03-19 23:53:37 +01:00
parent ae18f116ce
commit eaae21b309
2 changed files with 2 additions and 4 deletions
+2 -4
View File
@@ -4,10 +4,8 @@
<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 }}
{{ range resources.Match "style/*.scss" }}
{{ with . | toCSS }}
{{ if hugo.IsDevelopment }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ else -}}