Use Exist for calendar
This commit is contained in:
parent
1b2da4e18f
commit
b8822d13e2
5
main.go
5
main.go
|
@ -457,8 +457,9 @@ func prepareDays(repo PagesRepository, t time.Time) []Day {
|
|||
}
|
||||
|
||||
func pageHasContent(repo PagesRepository, day string) bool {
|
||||
page := repo.Get(day)
|
||||
return page.Blocks.Children != nil
|
||||
return repo.Exist(day)
|
||||
// page := repo.Get(day)
|
||||
// return page.Blocks.Children != nil
|
||||
}
|
||||
|
||||
func formatWeekPageName(year int, week int) string {
|
||||
|
|
Loading…
Reference in New Issue
Block a user