all repos — homestead @ 4bbbd38124322ce51bba65298c6143e0e6d1a746

Code for my website

refactor CalendarPage to match other template function signatures

Alan Pearce
commit

4bbbd38124322ce51bba65298c6143e0e6d1a746

parent

086f378195ddc1e3bce087196fcbda4e6d3ae6fd

1 file changed, 1 insertion(+), 5 deletions(-)

changed files
M domain/web/mux.godomain/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) }