minor adjustments

This commit is contained in:
LittleNyima 2023-04-03 16:23:02 +08:00
parent 247e62a418
commit f4d0687750
3 changed files with 8 additions and 11 deletions

View File

@ -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:

View File

@ -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

View File

@ -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