Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_index.md « search « 02-navigation-search « content-and-customization « content « exampleSite - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a455ce0ec920fe8cef193154fb004288eb74dca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
date: "2020-08-20T16:31:33.621Z"
description: search engine
post: ""
title: Search Engine
weight: 400
---


Docport theme uses the last improvement available in hugo version 20+ to generate a json index file ready to be consumed by lunr.js javascript search engine.

hugo generate lunrjs index.json at the root of `public` folder if the site only has one language or within each language subfolder. 

{{%notice warning%}}When you build the site with `hugo server`, hugo generates it internally and of course it don't show up in the filesystem{{%/notice%}}


## Disable search
You can disable this functionality with `disableSearch` param in you site `config.toml`


``` toml
	[params]
	disableSearch = true
```