Merge branch 'develop' of github.com:hugo-next/hugo-theme-next into develop

This commit is contained in:
凡梦星尘 2023-02-20 10:30:42 +08:00
commit fdaabac210
2 changed files with 6 additions and 3 deletions

View File

@ -62,7 +62,7 @@ NexT.boot.refresh = function() {
NexT.utils.registerCommonSwitch(); NexT.utils.registerCommonSwitch();
NexT.utils.domAddClass('#goto-comments', 'goto-comments-on'); NexT.utils.domAddClass('#goto-comments', 'goto-comments-on');
} else { } else {
NexT.utils.hideCommontes(); NexT.utils.hideComments();
} }
NexT.utils.registerImageViewer(); NexT.utils.registerImageViewer();

View File

@ -481,8 +481,11 @@ NexT.utils = {
}); });
}, },
hideCommontes: function () { hideComments: function () {
document.querySelector('.post-comments').style.display = 'none'; let postComments = document.querySelector('.post-comments');
if (postComments !== null) {
postComments.style.display = 'none';
}
}, },
hiddeLodingCmp: function (selector) { hiddeLodingCmp: function (selector) {