Use remote resource content

This commit is contained in:
Will Faught
2025-01-19 12:38:35 -08:00
parent 59fba263db
commit 7a35afd55b

View File

@@ -9,7 +9,7 @@
{{- with .Err -}}
{{- errorf "layouts/shortcodes/paige/request.html: cannot request remote resource %q: %v" $url . -}}
{{- else with .Value -}}
{{- strings.TrimRight "\f\n\r\t\v " . -}}
{{- strings.TrimRight "\f\n\r\t\v " .Content -}}
{{- else -}}
{{- errorf "layouts/shortcodes/paige/request.html: remote resource %q not found" $url -}}
{{- end -}}