diff options
author | 2022-01-09 23:17:43 -0800 | |
---|---|---|
committer | 2022-01-09 23:17:43 -0800 | |
commit | 818878e6997968e373593bbe755519a7486d8bc2 (patch) | |
tree | 2e4b8bbb334ad4eeabb3467b1d59716fc3282c06 | |
parent | submodules: sync (diff) | |
download | www-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.toml | 14 |
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 = ['.*'] |