💄 Add page load animate style.

This commit is contained in:
凡梦星尘
2022-06-18 16:09:08 +08:00
parent 51f95b6bba
commit 3a46e83146
7 changed files with 84 additions and 146 deletions

View File

@@ -287,7 +287,7 @@ NexT.utils = {
if (window.innerWidth < 992 || CONFIG.scheme === 'Pisces' || CONFIG.scheme === 'Gemini') return;
// Expand sidebar on post detail page by default, when post has a toc.
const hasTOC = document.querySelector('.post-toc');
let display = CONFIG.page.sidebar;
let display = CONFIG.sidebar;
if (typeof display !== 'boolean') {
// There's no definition sidebar in the page front-matter.
display = CONFIG.sidebar.display === 'always' || (CONFIG.sidebar.display === 'post' && hasTOC);