mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
4d07d872d5
This reverts commit a1e123ac02.
13 lines
363 B
HTML
13 lines
363 B
HTML
{{- $response := dict -}}
|
|
{{- with resources.GetRemote .URL .OPTIONS -}}
|
|
{{- with .Err -}}
|
|
{{- erroridf "error-get-remote-json" "%s" . -}}
|
|
{{- else -}}
|
|
{{- $response = .Content | transform.Unmarshal -}}
|
|
{{- end -}}
|
|
{{- else -}}
|
|
{{- erroridf "error-get-remote-json" "Unable to get remote resource %q" .URL -}}
|
|
{{- end -}}
|
|
|
|
{{- return $response -}}
|