去掉多余配置

This commit is contained in:
1152958806@qq.com 2023-09-05 23:58:20 +08:00
parent 7c083a8a58
commit b8b1986555
2 changed files with 1 additions and 6 deletions

View File

@ -418,7 +418,7 @@ document.addEventListener('DOMContentLoaded', function () {
const addPostOutdateNotice = function () { const addPostOutdateNotice = function () {
const data = GLOBAL_CONFIG.noticeOutdate 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) { if (diffDay >= data.limitDay) {
const ele = document.createElement('div') const ele = document.createElement('div')
ele.className = 'post-outdate-notice' ele.className = 'post-outdate-notice'

View File

@ -178,22 +178,17 @@
// 页面类型 index,page,post,tag,category // 页面类型 index,page,post,tag,category
htmlType: [[${ htmlType }]], htmlType: [[${ htmlType }]],
postTitle: [[${ htmlType == 'post' ? post.spec.title : htmlType == 'page' ? singlePage.spec.title : ''}]], postTitle: [[${ htmlType == 'post' ? post.spec.title : htmlType == 'page' ? singlePage.spec.title : ''}]],
isanchor: true,
isPost: [[${htmlType == 'post'}]], isPost: [[${htmlType == 'post'}]],
isHome: [[${ htmlType == 'index'}]], isHome: [[${ htmlType == 'index'}]],
isHighlightShrink: false,
postUpdate: '2022-11-04 20:08:15',
copyright: undefined, copyright: undefined,
lightbox: 'fancybox', lightbox: 'fancybox',
lazyload: {enable: [[${theme.config.other.vanillaLazyload.enable}]], error: [[@{${theme.config.other.vanillaLazyload.errorImg}}]] }, lazyload: {enable: [[${theme.config.other.vanillaLazyload.enable}]], error: [[@{${theme.config.other.vanillaLazyload.errorImg}}]] },
isFriendLinksInFooter: [[${theme.config.footer.footer_group.enable_footer_group}]], isFriendLinksInFooter: [[${theme.config.footer.footer_group.enable_footer_group}]],
loadingBox: [[${theme.config.other.loadingBoxs.loadingBoxEnable}]], loadingBox: [[${theme.config.other.loadingBoxs.loadingBoxEnable}]],
loadProgressBar: [[${theme.config.other.loadingBoxs.loadProgressBar}]], loadProgressBar: [[${theme.config.other.loadingBoxs.loadProgressBar}]],
allPlaylist: [[${theme.config.tool.nav_music.all_playlist}]],
navMusicEnable:[[${theme.config.tool.nav_music.nav_musicEnable}]], navMusicEnable:[[${theme.config.tool.nav_music.nav_musicEnable}]],
isMusic: [[${ htmlType == 'music'}]], isMusic: [[${ htmlType == 'music'}]],
helloText: [[${#strings.listSplit(theme.config.sidebar.profile.helloText, ',')}]], helloText: [[${#strings.listSplit(theme.config.sidebar.profile.helloText, ',')}]],
assetsLink: [[${assets_link}]],
profileStyle: [[${theme.config.sidebar.profile.profileStyle}]], profileStyle: [[${theme.config.sidebar.profile.profileStyle}]],
rightMenuEnable: [[${theme.config.tool.rightMenu.rightMenuEnable}]], rightMenuEnable: [[${theme.config.tool.rightMenu.rightMenuEnable}]],
source: { source: {