mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
Merge branch 'dev'
This commit is contained in:
commit
9d22bb82c6
28 files changed
+179
-86
No files matched your search
+13
@@ -59,6 +59,15 @@ local_search:
|
||||
preload: false
|
||||
CDN:
|
||||
|
||||
# Docsearch
|
||||
# https://docsearch.algolia.com/
|
||||
docsearch:
|
||||
enable: false
|
||||
appId:
|
||||
apiKey:
|
||||
indexName:
|
||||
option:
|
||||
|
||||
# Math (數學)
|
||||
# --------------------------------------
|
||||
# About the per_page
|
||||
@@ -686,6 +695,8 @@ aside:
|
||||
enable: true
|
||||
limit: 40 # if set 0 will show all
|
||||
color: false
|
||||
orderby: random # Order of tags, random/name/length
|
||||
order: 1 # Sort of order. 1, asc for ascending; -1, desc for descending
|
||||
sort_order: # Don't modify the setting unless you know how it works
|
||||
card_archives:
|
||||
enable: true
|
||||
@@ -912,6 +923,8 @@ CDN:
|
||||
# algolia_js:
|
||||
# algolia_search_v4:
|
||||
# instantsearch_v4:
|
||||
# docsearch_js:
|
||||
# docsearch_css:
|
||||
# pjax:
|
||||
# gitalk:
|
||||
# gitalk_css:
|
||||
|
||||
@@ -22,14 +22,6 @@ div
|
||||
if theme.pangu.enable
|
||||
!= partial("includes/third-party/pangu.pug", {}, { cache: true })
|
||||
|
||||
//- search
|
||||
if theme.algolia_search.enable
|
||||
script(src=url_for(theme.asset.algolia_search_v4))
|
||||
script(src=url_for(theme.asset.instantsearch_v4))
|
||||
script(src=url_for(theme.asset.algolia_js))
|
||||
else if theme.local_search.enable
|
||||
script(src=url_for(theme.asset.local_search))
|
||||
|
||||
.js-pjax
|
||||
if needLoadCountJs
|
||||
!= partial("includes/third-party/card-post-count/index", {}, { cache: true })
|
||||
|
||||
@@ -7,7 +7,7 @@ nav#nav
|
||||
span.site-name=config.title
|
||||
|
||||
#menus
|
||||
if (theme.algolia_search.enable || theme.local_search.enable)
|
||||
if (theme.algolia_search.enable || theme.local_search.enable || theme.docsearch.enable)
|
||||
#search-button
|
||||
a.site-page.social-icon.search(href="javascript:void(0);")
|
||||
i.fas.fa-search.fa-fw
|
||||
|
||||
Loaded 3 of 28 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user