Rename resource.html to func-resource.html

master
Will Faught 5 months ago
parent 1370d35762
commit bee5071d91

@ -8,11 +8,11 @@
{{ if (urls.Parse $url).Scheme }}
{{ with try (resources.GetRemote $url) }}
{{ with .Err }}
{{ errorf "layouts/partials/paige/resource.html: cannot get remote resource %q: %v" $url . }}
{{ errorf "layouts/partials/paige/func-resource.html: cannot get remote resource %q: %v" $url . }}
{{ else with .Value }}
{{ $result = . }}
{{ else }}
{{ errorf "layouts/partials/paige/resource.html: remote resource %q not found" $url }}
{{ errorf "layouts/partials/paige/func-resource.html: remote resource %q not found" $url }}
{{ end }}
{{ end }}
{{ end }}

@ -69,7 +69,7 @@
{{ $style = delimit ($style | uniq | sort) "; " }}
{{ if and (not $resource) $src }}
{{ $resource = partial "paige/resource.html" (dict "page" $page "url" $src) }}
{{ $resource = partial "paige/func-resource.html" (dict "page" $page "url" $src) }}
{{ end }}
{{ if $resource }}

@ -17,7 +17,7 @@
{{ errorf "layouts/partials/paige/tag-link.html: no href" }}
{{ end }}
{{ with partial "paige/resource.html" (dict "page" $page "url" $href) }}
{{ with partial "paige/func-resource.html" (dict "page" $page "url" $href) }}
{{ $resource := . }}
{{ if $template }}

@ -13,7 +13,7 @@
{{ errorf "layouts/partials/paige/tag-script.html: no src" }}
{{ end }}
{{ with partial "paige/resource.html" (dict "page" $page "url" $src) }}
{{ with partial "paige/func-resource.html" (dict "page" $page "url" $src) }}
{{ $resource := . | minify | fingerprint }}
{{ $integrity = $resource.Data.Integrity }}
{{ $src = $resource.RelPermalink }}

Loading…
Cancel
Save