aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2022-01-09 23:17:43 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2022-01-09 23:17:43 -0800
commit818878e6997968e373593bbe755519a7486d8bc2 (patch)
tree2e4b8bbb334ad4eeabb3467b1d59716fc3282c06
parentsubmodules: sync (diff)
downloadwww-hugo.tar.gz
www-hugo.tar.bz2
www-hugo.zip
config.toml: fix rst renderhugo
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--config.toml14
1 files changed, 14 insertions, 0 deletions
diff --git a/config.toml b/config.toml
index 1848eed..4c13c4a 100644
--- a/config.toml
+++ b/config.toml
@@ -12,3 +12,17 @@ ignorefiles = [ "data/gentoo-news/.*" ]
endLevel = 10
ordered = true
startLevel = 1
+
+[security]
+ enableInlineShortcodes = false
+ [security.exec]
+ # rst is custom here
+ allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^rst2html.py$']
+ osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']
+
+ [security.funcs]
+ getenv = ['^HUGO_']
+
+ [security.http]
+ methods = ['(?i)GET|POST']
+ urls = ['.*']