diff --git a/web/tpl/base.html b/web/tpl/base.html index 89b2989eedc..5a0ccb959be 100644 --- a/web/tpl/base.html +++ b/web/tpl/base.html @@ -97,15 +97,8 @@ return version } var d = Solar.fromDate(new Date()) - holiday = HolidayUtil.getHoliday(d.toYmd()) - if (holiday) { - if (holiday.isWork()) { - return version - } - return holiday.getName() + '快乐' - } else { - return version - } + festivals = d.getFestivals().length > 0 ? d.getFestivals() : d.getLunar().getFestivals() + return festivals.length > 0 ? festivals[0] + '快乐' : version } {% block body %}{% endblock %}