Skip to content

Commit

Permalink
add additional places for params.offlineSearch
Browse files Browse the repository at this point in the history
Signed-off-by: Severin Neumann <severin.neumann@altmuehlnet.de>
  • Loading branch information
svrnm authored and chalin committed Jan 11, 2024
1 parent 61b2e8e commit c26bb74
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions userguide/content/en/docs/adding-content/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,17 +231,21 @@ You can customize the summary length by setting `offlineSearchSummaryLength` in
{{< tab header="Configuration file:" disabled=true />}}
{{< tab header="hugo.toml" lang="toml" >}}
#Enable offline search with Lunr.js
[params]
offlineSearch = true
offlineSearchSummaryLength = 200
{{< /tab >}}
{{< tab header="hugo.yaml" lang="yaml" >}}
offlineSearch: true
offlineSearchSummaryLength: 200
params:
offlineSearch: true
offlineSearchSummaryLength: 200
{{< /tab >}}
{{< tab header="hugo.json" lang="json" >}}
{
"offlineSearch": true,
"offlineSearchSummaryLength": 200
"params": {
"offlineSearch": true,
"offlineSearchSummaryLength": 200
}
}
{{< /tab >}}
{{< /tabpane >}}
Expand All @@ -253,17 +257,21 @@ You can customize the maximum result count by setting `offlineSearchMaxResults`
{{< tabpane >}}
{{< tab header="Configuration file:" disabled=true />}}
{{< tab header="hugo.toml" lang="toml" >}}
[params]
offlineSearch = true
offlineSearchMaxResults = 25
{{< /tab >}}
{{< tab header="hugo.yaml" lang="yaml" >}}
offlineSearch: true
offlineSearchMaxResults: 25
params:
offlineSearch: true
offlineSearchMaxResults: 25
{{< /tab >}}
{{< tab header="hugo.json" lang="json" >}}
{
"offlineSearch": true,
"offlineSearchMaxResults": 25
"params": {
"offlineSearch": true,
"offlineSearchMaxResults": 25
}
}
{{< /tab >}}
{{< /tabpane >}}
Expand Down

0 comments on commit c26bb74

Please sign in to comment.