mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 14:07:06 +08:00
This commit is contained in:
15
layout/includes/third-party/pangu.pug
vendored
15
layout/includes/third-party/pangu.pug
vendored
@@ -1,13 +1,12 @@
|
||||
script(src=url_for(theme.CDN.pangu))
|
||||
if theme.pangu.field === 'post'
|
||||
if is_post()
|
||||
script.
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
pangu.spacingElementById('content-inner')
|
||||
})
|
||||
else if theme.pangu.field === 'page'
|
||||
if theme.pangu.field === 'post' && is_post()
|
||||
script.
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
pangu.spacingElementById('content-inner')
|
||||
pangu.autoSpacingPage()
|
||||
})
|
||||
else if theme.pangu.field === 'site'
|
||||
script.
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
pangu.autoSpacingPage()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user