Use Exist for calendar

This commit is contained in:
Peter Stuifzand 2021-08-15 21:36:28 +02:00
parent 1b2da4e18f
commit b8822d13e2

View File

@ -457,8 +457,9 @@ func prepareDays(repo PagesRepository, t time.Time) []Day {
} }
func pageHasContent(repo PagesRepository, day string) bool { func pageHasContent(repo PagesRepository, day string) bool {
page := repo.Get(day) return repo.Exist(day)
return page.Blocks.Children != nil // page := repo.Get(day)
// return page.Blocks.Children != nil
} }
func formatWeekPageName(year int, week int) string { func formatWeekPageName(year int, week int) string {