diff options
| author | Nantha Sorubakanthan <nantha@mielota.com> | 2025-11-20 18:24:37 +0100 |
|---|---|---|
| committer | Nantha Sorubakanthan <nantha@mielota.com> | 2025-11-20 18:24:37 +0100 |
| commit | 0755d29e36e43213f9165277f2f20287f126fb8d (patch) | |
| tree | 4c20f828805010bad545a0ad3f379c46c93a636f /layouts/shortcodes/include-remote.html | |
| parent | 220677131ae74e884736f2b8c122df5b9a891d18 (diff) | |
feat: add layout to include remote content
Diffstat (limited to 'layouts/shortcodes/include-remote.html')
| -rw-r--r-- | layouts/shortcodes/include-remote.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/shortcodes/include-remote.html b/layouts/shortcodes/include-remote.html new file mode 100644 index 0000000..eb5a010 --- /dev/null +++ b/layouts/shortcodes/include-remote.html @@ -0,0 +1,4 @@ +{{ $url := .Get "url" }} +{{ $res := resources.GetRemote $url }} +{{ $content := $res.Content }} +{{ $content | safeHTML }} |
