mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
fix: 修復當關閉代碼渲染后,標簽外挂裏的代碼塊會被壓縮到一行的bugs
improvements: 優化網站最後更新時間顯示,’0天前‘改爲’今天‘
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user