diff --git a/layout/_third-party/comments/valine.njk b/layout/_third-party/comments/valine.njk index 7599362..dc3ab99 100644 --- a/layout/_third-party/comments/valine.njk +++ b/layout/_third-party/comments/valine.njk @@ -4,8 +4,8 @@ NexT.utils.loadComments(document.querySelector('#valine-comments'), () => { NexT.utils.getScript('{{ valine_uri }}', () => { new Valine(Object.assign({ - el : '#valine-comments', - path : location.pathname, + el : '#valine-comments', + path: location.pathname, }, {{ theme.valine | json }} )); }, window.Valine); diff --git a/source/js/next-boot.js b/source/js/next-boot.js index 29aa20c..a8c3d00 100644 --- a/source/js/next-boot.js +++ b/source/js/next-boot.js @@ -80,7 +80,9 @@ NexT.boot.refresh = function() { * Need to add config option in Front-End at 'layout/_partials/head.njk' file. */ CONFIG.fancybox && NexT.utils.wrapImageWithFancyBox(); - CONFIG.mediumzoom && window.mediumZoom('.post-body :not(a) > img, .post-body > img'); + CONFIG.mediumzoom && window.mediumZoom('.post-body :not(a) > img, .post-body > img', { + background: 'var(--content-bg-color)' + }); CONFIG.lazyload && window.lozad('.post-body img').observe(); CONFIG.pangu && window.pangu.spacingPage();