mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
minor adjustments
This commit is contained in:
parent
247e62a418
commit
f4d0687750
14
_config.yml
14
_config.yml
@ -783,6 +783,13 @@ fancybox: true
|
||||
# Tag Plugins settings (標籤外掛)
|
||||
# --------------------------------------
|
||||
|
||||
# abcjs (樂譜渲染)
|
||||
# See https://github.com/paulrosen/abcjs
|
||||
# ---------------
|
||||
abcjs:
|
||||
enable: false
|
||||
per_page: false
|
||||
|
||||
# mermaid
|
||||
# see https://github.com/mermaid-js/mermaid
|
||||
mermaid:
|
||||
@ -862,13 +869,6 @@ lazyload:
|
||||
# favicon_16_16: /pwa/16.png
|
||||
# mask_icon: /pwa/safari-pinned-tab.svg
|
||||
|
||||
# abcjs (樂譜渲染)
|
||||
# See https://github.com/paulrosen/abcjs
|
||||
# ---------------
|
||||
abcjs:
|
||||
enable: false
|
||||
per_page: false
|
||||
|
||||
# Open graph meta tags
|
||||
# https://developers.facebook.com/docs/sharing/webmasters/
|
||||
Open_Graph_meta:
|
||||
|
||||
@ -62,11 +62,9 @@ div
|
||||
|
||||
!=partial('includes/third-party/search/index', {}, {cache: true})
|
||||
|
||||
if theme.abcjs.enable
|
||||
if theme.abcjs && theme.abcjs.enable
|
||||
if theme.abcjs.per_page
|
||||
if is_post() || is_page()
|
||||
script(src=url_for(theme.asset.abcjs_basic_js))
|
||||
include ./third-party/abcjs.pug
|
||||
else if page.abcjs
|
||||
script(src=url_for(theme.asset.abcjs_basic_js))
|
||||
include ./third-party/abcjs.pug
|
||||
|
||||
@ -210,6 +210,5 @@ docsearch_css:
|
||||
version: 3.3.3
|
||||
abcjs_basic_js:
|
||||
name: abcjs
|
||||
other_name: abcjs-basic
|
||||
file: dist/abcjs-basic-min.js
|
||||
version: 6.1.9
|
||||
Loading…
Reference in New Issue
Block a user