refactor CalendarPage to match other template function signatures
1 file changed, 1 insertion(+), 5 deletions(-)
changed files
M domain/web/mux.go → domain/web/mux.go
@@ -78,11 +78,7 @@ } func (website *Website) Calendar(w http.ResponseWriter, r *http.Request) ihttp.Error { analytics.WithCountKey(r, "Calendar") - err := calendar.CalendarPage(*website.siteSettings, templates.PageSettings{ - Title: "Calendar", - TitleAttrs: templates.Attrs{}, - BodyAttrs: templates.Attrs{}, - }, *website.calendar).Render(w) + err := calendar.CalendarPage(*website.siteSettings, website.calendar).Render(w) if err != nil { return ihttp.InternalServerError("could not render calendar page", err) }