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 }}" /> <link rel="{{ .Rel }}" {{ printf "type=%q" .MediaType.Type | safeHTMLAttr }} href="{{ .Permalink }}" title="{{ site.Title }}" />
{{ end }} {{ end }}
{{ range resources.Match "*.scss" }} {{ range resources.Match "style/*.scss" }}
{{ $targetPath := path.Join "css" (printf "%s.css" (path.BaseName .Name)) }} {{ with . | toCSS }}
{{ $opts := dict "transpiler" "libsass" "targetPath" $targetPath }}
{{ with . | toCSS $opts }}
{{ if hugo.IsDevelopment }} {{ if hugo.IsDevelopment }}
<link rel="stylesheet" href="{{ .RelPermalink }}"> <link rel="stylesheet" href="{{ .RelPermalink }}">
{{ else -}} {{ else -}}