Browse Source

Use Exist for calendar

single-block-api
Peter Stuifzand 12 months ago
parent
commit
b8822d13e2
  1. 5
      main.go

5
main.go

@ -457,8 +457,9 @@ func prepareDays(repo PagesRepository, t time.Time) []Day { @@ -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…
Cancel
Save