Skip to content

Commit 28bb017

Browse files
committed
Update
1 parent 4e1cef2 commit 28bb017

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-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://texto-remoto.sherlockes.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>{{ .body }}</code></pre>
4+
{{ $remote_data.body | safeHTML }}
65
{{- end -}}
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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 -}}
4+
{{- with $remote_data -}}
5+
<pre><code>{{ .body }}</code></pre>
6+
{{- end -}}

0 commit comments

Comments
 (0)