We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e1cef2 commit 28bb017Copy full SHA for 28bb017
layouts/shortcodes/texto_remoto.html
@@ -1,6 +1,5 @@
1
{{- $remote_url := (.Get 0) -}}
2
-{{- $remote := resources.GetRemote "https://texto-remoto.sherlockes.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>{{ .body }}</code></pre>
+ {{ $remote_data.body | safeHTML }}
6
{{- end -}}
layouts/shortcodes/texto_remoto_bak.html
@@ -0,0 +1,6 @@
+{{- $remote_url := (.Get 0) -}}
+{{- $remote := resources.GetRemote "https://texto-remoto.sherlockes.workers.dev/fetch?url=" $remote_url -}}
+{{- $remote_data := transform.Unmarshal $remote -}}
+{{- with $remote_data -}}
+ <pre><code>{{ .body }}</code></pre>
+{{- end -}}
0 commit comments