From b8b198655538bb523fb7f034ceed7efc3b36f77d Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Tue, 5 Sep 2023 23:58:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=A4=9A=E4=BD=99=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/js/main.js | 2 +- templates/modules/head.html | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/templates/assets/js/main.js b/templates/assets/js/main.js index fd42b62e..3a841f49 100644 --- a/templates/assets/js/main.js +++ b/templates/assets/js/main.js @@ -418,7 +418,7 @@ document.addEventListener('DOMContentLoaded', function () { const addPostOutdateNotice = function () { const data = GLOBAL_CONFIG.noticeOutdate - const diffDay = btf.diffDate(GLOBAL_CONFIG_SITE.postUpdate) + const diffDay = btf.diffDate("2022-11-04 20:08:15") if (diffDay >= data.limitDay) { const ele = document.createElement('div') ele.className = 'post-outdate-notice' diff --git a/templates/modules/head.html b/templates/modules/head.html index 4255a81a..292633fa 100644 --- a/templates/modules/head.html +++ b/templates/modules/head.html @@ -178,22 +178,17 @@ // 页面类型 index,page,post,tag,category htmlType: [[${ htmlType }]], postTitle: [[${ htmlType == 'post' ? post.spec.title : htmlType == 'page' ? singlePage.spec.title : ''}]], - isanchor: true, isPost: [[${htmlType == 'post'}]], isHome: [[${ htmlType == 'index'}]], - isHighlightShrink: false, - postUpdate: '2022-11-04 20:08:15', copyright: undefined, lightbox: 'fancybox', lazyload: {enable: [[${theme.config.other.vanillaLazyload.enable}]], error: [[@{${theme.config.other.vanillaLazyload.errorImg}}]] }, isFriendLinksInFooter: [[${theme.config.footer.footer_group.enable_footer_group}]], loadingBox: [[${theme.config.other.loadingBoxs.loadingBoxEnable}]], loadProgressBar: [[${theme.config.other.loadingBoxs.loadProgressBar}]], - allPlaylist: [[${theme.config.tool.nav_music.all_playlist}]], navMusicEnable:[[${theme.config.tool.nav_music.nav_musicEnable}]], isMusic: [[${ htmlType == 'music'}]], helloText: [[${#strings.listSplit(theme.config.sidebar.profile.helloText, ',')}]], - assetsLink: [[${assets_link}]], profileStyle: [[${theme.config.sidebar.profile.profileStyle}]], rightMenuEnable: [[${theme.config.tool.rightMenu.rightMenuEnable}]], source: {