From b3af811563d14a1757e72c25a445b908d9c24196 Mon Sep 17 00:00:00 2001 From: W1ndys Date: Tue, 19 Nov 2024 23:53:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AC=E5=9C=B0=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.butterfly.yml | 44 ++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/_config.butterfly.yml b/_config.butterfly.yml index b27fcfc76..19d66c399 100644 --- a/_config.butterfly.yml +++ b/_config.butterfly.yml @@ -800,24 +800,34 @@ katex: # search (搜索) # see https://butterfly.js.org/posts/ceeb73f/#%E6%90%9C%E7%B4%A2 # ---------------------------------------------------------------------------- +search: + # Choose: algolia_search / local_search / docsearch + # leave it empty if you don't need search + use: local_search + placeholder: -# Algolia search -algolia_search: - enable: false - hits: - per_page: 6 - -# Local search -local_search: - enable: true #是否开启本地搜索 - # 预加载,开启后,进入网页后会自动加载搜索文件。关闭时,只有点击搜索按钮后,才会加载搜索文件 - preload: true - # 匹配的文章结果,默认显示最开始的 1段结果 - top_n_per_article: 1 - # 将 html 字符串解码为可读字符串 - unescape: true - # 搜索文件的 CDN 地址(默认使用的本地链接) - # CDN: + # Algolia Search + algolia_search: + # Number of search results per page + hitsPerPage: 6 + + # Local Search + local_search: + # Preload the search data when the page loads. + preload: true + # Show top n results per article, show all results by setting to -1 + top_n_per_article: 1 + # Unescape html strings to the readable one. + unescape: true + # CDN: + + # Docsearch + # https://docsearch.algolia.com/ + docsearch: + appId: + apiKey: + indexName: + option: # Docsearch docsearch: