fix: 修復當關閉代碼渲染后,標簽外挂裏的代碼塊會被壓縮到一行的bugs

improvements: 優化網站最後更新時間顯示,’0天前‘改爲’今天‘
This commit is contained in:
Jerry
2020-08-24 22:56:58 +08:00
parent 4aacafdae1
commit 40fd319cb2
14 changed files with 109 additions and 20 deletions

View File

@@ -95,6 +95,14 @@
})
}
let last_push_date = 'undefined';
if (theme.aside.card_webinfo.last_push_date) {
last_push_date = JSON.stringify({
zeroDay: _p("aside.card_webinfo.last_push_date.zero_day"),
suffix: _p("aside.card_webinfo.last_push_date.suffix")
})
}
script.
var GLOBAL_CONFIG = {
root: '!{config.root}',
@@ -114,7 +122,7 @@ script.
message_next: '!{_p("Snackbar.bookmark.message_next")}'
},
runtime: '!{theme.runtimeshow.enable ? _p("aside.card_webinfo.runtime.unit") : ""}',
last_push_date: '!{theme.aside.card_webinfo.last_push_date ? _p("aside.card_webinfo.last_push_date.suffix") : ""}',
last_push_date: !{last_push_date},
copyright: !{copyright},
ClickShowText: !{ClickShowText},
medium_zoom: !{theme.medium_zoom},