From c79c6a1d51366034103e31e7bca1b5e6577860f8 Mon Sep 17 00:00:00 2001 From: Olblak Date: Fri, 13 Feb 2026 18:03:27 +0100 Subject: [PATCH] fix: search menu Signed-off-by: Olblak --- config/_default/config.toml | 68 +++++++++---------- .../shortcodes/autodiscoveryparameters.html | 2 +- 2 files changed, 33 insertions(+), 37 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index e42aee4b0..ddecee98e 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -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 + diff --git a/layouts/shortcodes/autodiscoveryparameters.html b/layouts/shortcodes/autodiscoveryparameters.html index bfc361759..e3c60aa12 100644 --- a/layouts/shortcodes/autodiscoveryparameters.html +++ b/layouts/shortcodes/autodiscoveryparameters.html @@ -7,7 +7,7 @@ Description Required -{{ $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 }}