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 }}" />
|
<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 -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user