diff --git a/layout/includes/head/config.pug b/layout/includes/head/config.pug index f47a21ffd..b23742e16 100644 --- a/layout/includes/head/config.pug +++ b/layout/includes/head/config.pug @@ -69,16 +69,6 @@ }) } - let noticeOutdate = 'undefined' - if (theme.noticeOutdate && theme.noticeOutdate.enable) { - noticeOutdate = JSON.stringify({ - limitDay: theme.noticeOutdate.limit_day, - position: theme.noticeOutdate.position, - messagePrev: theme.noticeOutdate.message_prev, - messageNext: theme.noticeOutdate.message_next, - }) - } - let highlight = 'undefined' let syntaxHighlighter = config.syntax_highlighter let highlightEnable = syntaxHighlighter ? ['highlight.js', 'prismjs'].includes(syntaxHighlighter) : (config.highlight.enable || config.prismjs.enable) @@ -100,7 +90,6 @@ script. algolia: !{algolia}, localSearch: !{localSearch}, translate: !{translate}, - noticeOutdate: !{noticeOutdate}, highlight: !{highlight}, copy: { success: '!{_p("copy.success")}', diff --git a/layout/includes/head/config_site.pug b/layout/includes/head/config_site.pug index 7531f045a..ccd45dcf8 100644 --- a/layout/includes/head/config_site.pug +++ b/layout/includes/head/config_site.pug @@ -23,6 +23,5 @@ script#config-diff. isHome: !{is_home()}, isHighlightShrink: !{isHighlightShrink}, isToc: !{showToc}, - postUpdate: '!{full_date(page.updated)}', isShuoshuo: !{page.type == 'shuoshuo'} } diff --git a/layout/includes/page/default-page.pug b/layout/includes/page/default-page.pug index e7057f73a..4a7d51560 100644 --- a/layout/includes/page/default-page.pug +++ b/layout/includes/page/default-page.pug @@ -1,2 +1,2 @@ -#article-container +#article-container.container != page.content \ No newline at end of file diff --git a/layout/includes/page/flink.pug b/layout/includes/page/flink.pug index 10d3893ac..30cdad58d 100644 --- a/layout/includes/page/flink.pug +++ b/layout/includes/page/flink.pug @@ -1,4 +1,4 @@ -#article-container +#article-container.container .flink - let { content, random, flink_url } = page - let pageContent = content diff --git a/layout/includes/page/shuoshuo.pug b/layout/includes/page/shuoshuo.pug index 75ed49c43..3bcb01d6d 100644 --- a/layout/includes/page/shuoshuo.pug +++ b/layout/includes/page/shuoshuo.pug @@ -28,7 +28,7 @@ const btn = e.target.closest('.shuoshuo-comment-btn') if (!btn) return - const ele = btn.parentNode.nextElementSibling + const ele = btn.closest('.container').nextElementSibling const { shuoshuoComment } = window const isInclude = ele.classList.contains('no-comment') runDestroy(shuoshuoComment) @@ -103,22 +103,24 @@ return `