Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 32 additions & 36 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,55 +45,51 @@ baseName = "sitemap"
isHTML = false
isPlainText = true
noUgly = true
rel = "sitemap"
rel = "sitemap"

[security]
enableInlineShortcodes = false
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']
[security.funcs]
getenv = ['^HUGO_']
[security.http]
methods = ['(?i)GET|POST']
urls = ['.*']
enableInlineShortcodes = false
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']
[security.funcs]
getenv = ['^HUGO_']
[security.http]
methods = ['(?i)GET|POST']
urls = ['.*']

[caches]
[caches.getjson]
dir = ":cacheDir/:project"
maxAge = "10s"
[caches.getjson]
dir = ":cacheDir/:project"
maxAge = "10s"

[sitemap]
changefreq = "weekly"
filename = "sitemap.xml"
priority = 0.5
changefreq = "weekly"
filename = "sitemap.xml"
priority = 0.5

[taxonomies]
contributor = "contributors"
plugin = "plugins"
contributor = "contributors"
plugin = "plugins"

[permalinks]
blog = "/blog/:title/"
# docs = "/docs/1.0/:sections[1:]/:title/"

[minify.tdewolff.html]
keepWhitespace = false

[minify]
# Disabling js minify as it generates a weird issue :/
# It would be nice to revert this decision in the future
disableJS = true
keepWhitespace = false

[related]
threshold = 80
includeNewer = true
toLower = false
[[related.indices]]
name = "categories"
weight = 100
[[related.indices]]
name = "tags"
weight = 80
[[related.indices]]
name = "date"
weight = 10
threshold = 80
includeNewer = true
toLower = false
[[related.indices]]
name = "categories"
weight = 100
[[related.indices]]
name = "tags"
weight = 80
[[related.indices]]
name = "date"
weight = 10

2 changes: 1 addition & 1 deletion layouts/shortcodes/autodiscoveryparameters.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<th>Description</th>
<th>Required</th>
</tr>
{{ $dataJ := getJSON "/content/en/schema/latest/policy/manifest/config.json" }}
{{ $dataJ := getJSON "/content/en/schema/latest/config.json" }}
{{ range $k, $v := $dataJ.properties.autodiscovery.properties.crawlers.properties }}
{{ if eq $k $pluginName }}
{{ range $key, $value := $v.properties }}
Expand Down
Loading