Skip to content

Commit 295cf18

Browse files
committed
Update
1 parent 5b27690 commit 295cf18

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

layouts/shortcodes/texto_remoto.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{{- $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 -}}
2+
{{- $remote_data := getJSON "https://hugo-remote-url-proxy.quinn934.workers.dev/fetch?url=" $remote_url -}}
43
{{- with $remote_data -}}
5-
<pre><code>{{ $remote_data.body | safeHTML }}</code></pre>
4+
<pre>{{ $remote_data.body | safeHTML }}</pre>
65
{{- end -}}

0 commit comments

Comments
 (0)