mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 20:14:15 +00:00
search: Do not automatically focus cursor on search box
This commit is contained in:
1 parent
65391b18f5
commit
51af6be900
2 files changed
+18
-1
No files matched your search
+15
-1
@@ -315,6 +315,7 @@ enableGitInfo = false
|
||||
app_id = ""
|
||||
api_key = ""
|
||||
index_name = ""
|
||||
show_logo = false
|
||||
|
||||
# Taxonomies.
|
||||
[taxonomies]
|
||||
@@ -324,7 +325,20 @@ enableGitInfo = false
|
||||
|
||||
# Languages
|
||||
# Create a [languages.X] block for each language you want, where X is the language ID.
|
||||
# Refer to https://sourcethemes.com/academic/docs/language/
|
||||
|
||||
# Configure the English version of the website.
|
||||
[Languages.en]
|
||||
[languages.en]
|
||||
languageCode = "en-us"
|
||||
|
||||
# Uncomment the lines below to configure your website in a second language.
|
||||
#[languages.zh]
|
||||
# languageCode = "zh-Hans"
|
||||
# title = "Chinese website title..."
|
||||
# [languages.zh.params]
|
||||
# name = "Your name in Chinese..."
|
||||
# role = "Your role in Chinese..."
|
||||
# [[languages.zh.menu.main]]
|
||||
# name = "Wo"
|
||||
# url = "#about"
|
||||
# weight = 1
|
||||
@@ -106,6 +106,8 @@
|
||||
search.addWidget(
|
||||
instantsearch.widgets.searchBox({
|
||||
container: '#search-box',
|
||||
autofocus: false,
|
||||
poweredBy: {{ .Site.Params.search.algolia.show_logo | default false }},
|
||||
placeholder: {{ i18n "search_placeholder" }}
|
||||
})
|
||||
);
|
||||
@@ -114,6 +116,7 @@
|
||||
search.addWidget(
|
||||
instantsearch.widgets.infiniteHits({
|
||||
container: '#search-hits',
|
||||
escapeHits: true,
|
||||
templates: {
|
||||
empty: '<div class="search-no-results">' + {{ i18n "search_no_results" }} + '</div>',
|
||||
item: getTemplate('search-hit')
|
||||
|
||||
Reference in new issue
Block a user