mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 22:17:06 +08:00
fix: 修復關閉last push date 後, 報 'hour' 找不到的bugs
This commit is contained in:
@@ -58,7 +58,6 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let Snackbar = 'undefined';
|
let Snackbar = 'undefined';
|
||||||
if (theme.snackbar && theme.snackbar.enable) {
|
if (theme.snackbar && theme.snackbar.enable) {
|
||||||
Snackbar = JSON.stringify({
|
Snackbar = JSON.stringify({
|
||||||
@@ -95,15 +94,11 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
let date_suffix = 'undefined';
|
let date_suffix = JSON.stringify({
|
||||||
if (theme.aside.card_webinfo.last_push_date) {
|
|
||||||
date_suffix = JSON.stringify({
|
|
||||||
one_hour: _p("date_suffix.one_hour"),
|
one_hour: _p("date_suffix.one_hour"),
|
||||||
hours: _p("date_suffix.hours"),
|
hours: _p("date_suffix.hours"),
|
||||||
day: _p('date_suffix.day')
|
day: _p('date_suffix.day')
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
|
||||||
|
|
||||||
script.
|
script.
|
||||||
var GLOBAL_CONFIG = {
|
var GLOBAL_CONFIG = {
|
||||||
|
|||||||
Reference in New Issue
Block a user