mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Optimize darkmode medium-zoom style
This commit is contained in:
parent
1ce92c1e64
commit
e57bf4558c
4
layout/_third-party/comments/valine.njk
vendored
4
layout/_third-party/comments/valine.njk
vendored
@ -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);
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user