Search Engines

Customize search engines.

Donate

Become a backer or sponsor to support our work.

Sponsors

Search Engines Properties

NameTypeDescription
weightnumberLower weight gets higer priority.

Built-in Search Engines

NameIdentifierModuleVersion
Baidubaidugithub.com/hbstack/theme-start/engines/baiduVersion
Bingbinggithub.com/hbstack/theme-start/engines/bingVersion
DockDockGoduckduckgogithub.com/hbstack/theme-start/engines/duckduckgoVersion
Googlegooglegithub.com/hbstack/theme-start/engines/googleVersion
Sogousogougithub.com/hbstack/theme-start/engines/sogouVersion
Wikipediawikipediagithub.com/hbstack/theme-start/engines/wikipediaVersion
Yahooyahoogithub.com/hbstack/theme-start/engines/yahooVersion
Yandexyandexgithub.com/hbstack/theme-start/engines/yandexVersion

Search Engines Configuration

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}
razonyang
Sunday, November 3, 2024 Friday, September 15, 2023