Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/ALGOLIA-SEARCH.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ NexT provides Algolia search plugin for index your hexo website content. To use
...
```

1. In `next/_config.yml`, turn on `enable` of `algolia_search`. You can adjust the text in `labels` according to your needs.
1. In `next/_config.yml`, turn on `enable` of `algolia_search`. At the same time, you need to **turn off other search plugins** like Local Search. You can also adjust the text in `labels` according to your needs.

```yml
# Algolia Search
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-CN/ALGOLIA-SEARCH.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ NexT 内部提供 Algolia 的搜索功能,要使用此功能请确保所使用
...
```

1. 更改`主题配置文件`,找到 Algolia Search 配置部分,将 `enable` 改为 `true` 即可,根据需要你可以调整 `labels` 中的文本:
1. 更改`主题配置文件`,找到 Algolia Search 配置部分,将 `enable` 改为 `true`。同时你需要**关闭**其他搜索插件,如 Local Search 等。你也可以根据需要调整 `labels` 中的文本:

```yml
# Algolia Search
Expand Down
7 changes: 5 additions & 2 deletions source/css/_common/components/third-party/algolia-search.styl
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// fix bug using algolia search's CDN
svg path {
display: none;
.ais-search-box--magnifier svg {
display: none !important;
}
.ais-search-box--reset svg {
display: none !important;
}

.algolia-pop-overlay
Expand Down