Rename resource.html to func-resource.html

This commit is contained in:
Will Faught
2025-02-05 15:52:23 -08:00
parent 1370d35762
commit bee5071d91
4 changed files with 5 additions and 5 deletions

View File

@@ -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 }}

View File

@@ -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 }}

View File

@@ -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 }}

View File

@@ -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 }}