diff --git a/layout/includes/third-party/pjax.pug b/layout/includes/third-party/pjax.pug index 42b4fb9..831eab9 100644 --- a/layout/includes/third-party/pjax.pug +++ b/layout/includes/third-party/pjax.pug @@ -36,7 +36,9 @@ script. document.addEventListener('pjax:send', function () { if (window.aplayers) { for (let i = 0; i < window.aplayers.length; i++) { - if (!window.aplayers[i].options.fixed) window.aplayers[i].destroy() + if (!window.aplayers[i].options.fixed) { + window.aplayers[i].destroy() + } } } diff --git a/scripts/filters/post_lazyload.js b/scripts/filters/post_lazyload.js index f41b97b..92857cc 100644 --- a/scripts/filters/post_lazyload.js +++ b/scripts/filters/post_lazyload.js @@ -10,7 +10,7 @@ const urlFor = require('hexo-util').url_for.bind(hexo) function lazyProcess (htmlContent) { const bg = hexo.theme.config.lazyload.post ? urlFor(hexo.theme.config.lazyload.post) : 'data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs=' - return htmlContent.replace(/(