minor adjustments

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

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