We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b27690 commit 295cf18Copy full SHA for 295cf18
layouts/shortcodes/texto_remoto.html
@@ -1,6 +1,5 @@
1
{{- $remote_url := (.Get 0) -}}
2
-{{- $remote := resources.GetRemote "https://hugo-remote-url-proxy.quinn934.workers.dev/fetch?url=" $remote_url -}}
3
-{{- $remote_data := transform.Unmarshal $remote -}}
+{{- $remote_data := getJSON "https://hugo-remote-url-proxy.quinn934.workers.dev/fetch?url=" $remote_url -}}
4
{{- with $remote_data -}}
5
- <pre><code>{{ $remote_data.body | safeHTML }}</code></pre>
+ <pre>{{ $remote_data.body | safeHTML }}</pre>
6
{{- end -}}
0 commit comments