Skip to content

Commit 1db9477

Browse files
authored
fix: search menu (#2703)
Signed-off-by: Olblak <me@olblak.com>
1 parent 2843ad5 commit 1db9477

File tree

2 files changed

+33
-37
lines changed

2 files changed

+33
-37
lines changed

config/_default/config.toml

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -45,55 +45,51 @@ baseName = "sitemap"
4545
isHTML = false
4646
isPlainText = true
4747
noUgly = true
48-
rel = "sitemap"
48+
rel = "sitemap"
4949

5050
[security]
51-
enableInlineShortcodes = false
52-
[security.exec]
53-
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
54-
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']
55-
[security.funcs]
56-
getenv = ['^HUGO_']
57-
[security.http]
58-
methods = ['(?i)GET|POST']
59-
urls = ['.*']
51+
enableInlineShortcodes = false
52+
[security.exec]
53+
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
54+
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']
55+
[security.funcs]
56+
getenv = ['^HUGO_']
57+
[security.http]
58+
methods = ['(?i)GET|POST']
59+
urls = ['.*']
6060

6161
[caches]
62-
[caches.getjson]
63-
dir = ":cacheDir/:project"
64-
maxAge = "10s"
62+
[caches.getjson]
63+
dir = ":cacheDir/:project"
64+
maxAge = "10s"
6565

6666
[sitemap]
67-
changefreq = "weekly"
68-
filename = "sitemap.xml"
69-
priority = 0.5
67+
changefreq = "weekly"
68+
filename = "sitemap.xml"
69+
priority = 0.5
7070

7171
[taxonomies]
72-
contributor = "contributors"
73-
plugin = "plugins"
72+
contributor = "contributors"
73+
plugin = "plugins"
7474

7575
[permalinks]
7676
blog = "/blog/:title/"
7777
# docs = "/docs/1.0/:sections[1:]/:title/"
7878

7979
[minify.tdewolff.html]
80-
keepWhitespace = false
81-
82-
[minify]
83-
# Disabling js minify as it generates a weird issue :/
84-
# It would be nice to revert this decision in the future
85-
disableJS = true
80+
keepWhitespace = false
8681

8782
[related]
88-
threshold = 80
89-
includeNewer = true
90-
toLower = false
91-
[[related.indices]]
92-
name = "categories"
93-
weight = 100
94-
[[related.indices]]
95-
name = "tags"
96-
weight = 80
97-
[[related.indices]]
98-
name = "date"
99-
weight = 10
83+
threshold = 80
84+
includeNewer = true
85+
toLower = false
86+
[[related.indices]]
87+
name = "categories"
88+
weight = 100
89+
[[related.indices]]
90+
name = "tags"
91+
weight = 80
92+
[[related.indices]]
93+
name = "date"
94+
weight = 10
95+

layouts/shortcodes/autodiscoveryparameters.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<th>Description</th>
88
<th>Required</th>
99
</tr>
10-
{{ $dataJ := getJSON "/content/en/schema/latest/policy/manifest/config.json" }}
10+
{{ $dataJ := getJSON "/content/en/schema/latest/config.json" }}
1111
{{ range $k, $v := $dataJ.properties.autodiscovery.properties.crawlers.properties }}
1212
{{ if eq $k $pluginName }}
1313
{{ range $key, $value := $v.properties }}

0 commit comments

Comments
 (0)