feat: 重構本地搜索

feat: Algolia 搜索,點擊文章內容也會跳轉到相應頁面
fix: 修復 fullpage loading 顯示滾動條的 bug close #1235
fix: 修復 safari 下,搜索內容被系統搜索框遮擋的 bug
improvement: 手機 safari 橫屏時,網頁全屏幕顯示
improvement: 當沒有開啟 beautify 時, hr 顯示默認的樣式
This commit is contained in:
Jerry
2023-03-28 20:40:43 +08:00
parent 63dc605794
commit 8199e25215
21 changed files with 426 additions and 226 deletions

View File

@@ -56,11 +56,15 @@ algolia_search:
# Local search
local_search:
enable: false
# Preload the search data when the page loads.
preload: false
# 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: false
CDN:
# Docsearch
# https://docsearch.algolia.com/
docsearch:
enable: false
appId:
@@ -777,7 +781,7 @@ rightside_item_order:
medium_zoom: false
# fancybox
# http://fancyapps.com/fancybox/3/
# https://fancyapps.com/fancybox/
fancybox: true
# Tag Plugins settings (標籤外掛)