Customize search engines.
Become a backer or sponsor to support our work.
Name | Type | Description |
---|---|---|
weight | number | Lower weight gets higer priority. |
Name | Identifier | Module | Version |
---|---|---|---|
Baidu | baidu | github.com/hbstack/theme-start/engines/baidu | |
Bing | bing | github.com/hbstack/theme-start/engines/bing | |
DockDockGo | duckduckgo | github.com/hbstack/theme-start/engines/duckduckgo | |
google | github.com/hbstack/theme-start/engines/google | ||
Sogou | sogou | github.com/hbstack/theme-start/engines/sogou | |
Wikipedia | wikipedia | github.com/hbstack/theme-start/engines/wikipedia | |
Yahoo | yahoo | github.com/hbstack/theme-start/engines/yahoo | |
Yandex | yandex | github.com/hbstack/theme-start/engines/yandex |
hugo.toml
1[module]
2 [[module.imports]]
3 path = 'github.com/hbstack/theme-start/engines/google'
4 [[module.imports]]
5 path = 'github.com/hbstack/theme-start/engines/bing'
6 [[module.imports]]
7 path = 'github.com/hbstack/theme-start/engines/baidu'
8 [[module.imports]]
9 path = 'github.com/hbstack/theme-start/engines/duckduckgo'
10[params]
11 [params.hb]
12 [params.hb.theme_start]
13 [params.hb.theme_start.search_engines]
14 [params.hb.theme_start.search_engines.baidu]
15 weight = 3
16 [params.hb.theme_start.search_engines.bing]
17 weight = 2
18 [params.hb.theme_start.search_engines.duckduckgo]
19 weight = 4
20 [params.hb.theme_start.search_engines.google]
21 weight = 1
hugo.yaml
1module:
2 imports:
3 - path: github.com/hbstack/theme-start/engines/google
4 - path: github.com/hbstack/theme-start/engines/bing
5 - path: github.com/hbstack/theme-start/engines/baidu
6 - path: github.com/hbstack/theme-start/engines/duckduckgo
7params:
8 hb:
9 theme_start:
10 search_engines:
11 baidu:
12 weight: 3
13 bing:
14 weight: 2
15 duckduckgo:
16 weight: 4
17 google:
18 weight: 1
hugo.json
1{
2 "module": {
3 "imports": [
4 {
5 "path": "github.com/hbstack/theme-start/engines/google"
6 },
7 {
8 "path": "github.com/hbstack/theme-start/engines/bing"
9 },
10 {
11 "path": "github.com/hbstack/theme-start/engines/baidu"
12 },
13 {
14 "path": "github.com/hbstack/theme-start/engines/duckduckgo"
15 }
16 ]
17 },
18 "params": {
19 "hb": {
20 "theme_start": {
21 "search_engines": {
22 "baidu": {
23 "weight": 3
24 },
25 "bing": {
26 "weight": 2
27 },
28 "duckduckgo": {
29 "weight": 4
30 },
31 "google": {
32 "weight": 1
33 }
34 }
35 }
36 }
37 }
38}