diff --git a/themes/hugo-theme-flat/static/js/calendar.js b/themes/hugo-theme-flat/static/js/calendar.js index 74eac7e..96c61db 100644 --- a/themes/hugo-theme-flat/static/js/calendar.js +++ b/themes/hugo-theme-flat/static/js/calendar.js @@ -20,6 +20,9 @@ const calRefresh=function () { el.remove() } }catch(e){} + + let weekDayNames = ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"]; + for (let item of cal) { let li = $("
"); //li.text(item.summary) @@ -35,6 +38,8 @@ const calRefresh=function () { let date = $(""); date.text( + weekDayNames[startDate.getDay()] + + "., " + zeropad(startDate.getDate()) + "." + zeropad(1 + startDate.getMonth()) +