@@ -199,14 +199,18 @@ To add Lunr search to your Docsy site:
199
199
{{< tabpane >}}
200
200
{{< tab header="Configuration file:" disabled=true />}}
201
201
{{< tab header="hugo.toml" lang="toml" >}}
202
+ [ params]
202
203
offlineSearch = true
203
204
{{< /tab >}}
204
205
{{< tab header="hugo.yaml" lang="yaml" >}}
205
- offlineSearch: true
206
+ params:
207
+ offlineSearch: true
206
208
{{< /tab >}}
207
209
{{< tab header="hugo.json" lang="json" >}}
208
210
{
209
- "offlineSearch": true
211
+ "params": {
212
+ "offlineSearch": true
213
+ }
210
214
}
211
215
{{< /tab >}}
212
216
{{< /tabpane >}}
@@ -227,17 +231,21 @@ You can customize the summary length by setting `offlineSearchSummaryLength` in
227
231
{{< tab header="Configuration file:" disabled=true />}}
228
232
{{< tab header="hugo.toml" lang="toml" >}}
229
233
#Enable offline search with Lunr.js
234
+ [ params]
230
235
offlineSearch = true
231
236
offlineSearchSummaryLength = 200
232
237
{{< /tab >}}
233
238
{{< tab header="hugo.yaml" lang="yaml" >}}
234
- offlineSearch: true
235
- offlineSearchSummaryLength: 200
239
+ params:
240
+ offlineSearch: true
241
+ offlineSearchSummaryLength: 200
236
242
{{< /tab >}}
237
243
{{< tab header="hugo.json" lang="json" >}}
238
244
{
239
- "offlineSearch": true,
240
- "offlineSearchSummaryLength": 200
245
+ "params": {
246
+ "offlineSearch": true,
247
+ "offlineSearchSummaryLength": 200
248
+ }
241
249
}
242
250
{{< /tab >}}
243
251
{{< /tabpane >}}
@@ -249,17 +257,21 @@ You can customize the maximum result count by setting `offlineSearchMaxResults`
249
257
{{< tabpane >}}
250
258
{{< tab header="Configuration file:" disabled=true />}}
251
259
{{< tab header="hugo.toml" lang="toml" >}}
260
+ [ params]
252
261
offlineSearch = true
253
262
offlineSearchMaxResults = 25
254
263
{{< /tab >}}
255
264
{{< tab header="hugo.yaml" lang="yaml" >}}
256
- offlineSearch: true
257
- offlineSearchMaxResults: 25
265
+ params:
266
+ offlineSearch: true
267
+ offlineSearchMaxResults: 25
258
268
{{< /tab >}}
259
269
{{< tab header="hugo.json" lang="json" >}}
260
270
{
261
- "offlineSearch": true,
262
- "offlineSearchMaxResults": 25
271
+ "params": {
272
+ "offlineSearch": true,
273
+ "offlineSearchMaxResults": 25
274
+ }
263
275
}
264
276
{{< /tab >}}
265
277
{{< /tabpane >}}
0 commit comments