summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hugo.yaml7
-rw-r--r--layouts/shortcodes/include-remote.html4
2 files changed, 11 insertions, 0 deletions
diff --git a/hugo.yaml b/hugo.yaml
index 550d9f3..7820b4b 100644
--- a/hugo.yaml
+++ b/hugo.yaml
@@ -10,6 +10,13 @@ markup:
renderer:
unsafe: true
+security:
+ http:
+ methods:
+ - GET
+ urls:
+ - https://codeberg.org/mielota/dox/raw/branch/main/etc/fail2ban/jail.local
+
params:
css: style.css?v=1.0.10
author:
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 }}