Déplacement, renommage de style.scss, simplification de l'inclusion du style.
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user