Format link.html, script.html
This commit is contained in:
@@ -27,10 +27,7 @@
|
|||||||
{{ $intrinsicwidth := $width }}
|
{{ $intrinsicwidth := $width }}
|
||||||
|
|
||||||
{{ if not $resource }}
|
{{ if not $resource }}
|
||||||
{{ $resource = partial "paige/resource.html" (dict
|
{{ $resource = partial "paige/resource.html" (dict "page" $page "url" $src) }}
|
||||||
"page" $page
|
|
||||||
"url" $src
|
|
||||||
) }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with $resource }}
|
{{ with $resource }}
|
||||||
|
@@ -18,11 +18,7 @@
|
|||||||
{{ $resource := resources.ExecuteAsTemplate $href (or $page dict) . }}
|
{{ $resource := resources.ExecuteAsTemplate $href (or $page dict) . }}
|
||||||
|
|
||||||
{{ if $sass }}
|
{{ if $sass }}
|
||||||
{{ $resource = $resource | toCSS (dict
|
{{ $resource = $resource | toCSS (dict "enableSourceMap" $enablesourcemap "includePaths" $includepaths "outputStyle" $outputstyle) }}
|
||||||
"enableSourceMap" $enablesourcemap
|
|
||||||
"includePaths" $includepaths
|
|
||||||
"outputStyle" $outputstyle
|
|
||||||
) }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $resource = $resource | minify | fingerprint }}
|
{{ $resource = $resource | minify | fingerprint }}
|
||||||
|
Reference in New Issue
Block a user