diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/website/mux.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/website/mux.go b/internal/website/mux.go index 2d1b971..a6e7ba0 100644 --- a/internal/website/mux.go +++ b/internal/website/mux.go @@ -74,6 +74,7 @@ func NewMux(cfg *config.Config, root string) (mux *http.ServeMux, err error) { if err != nil { return nil, errors.WithMessagef(err, "registering content files") } + templates.Setup() mux.Handle("/", wrapHandler(cfg, func(w http.ResponseWriter, r *http.Request) *HTTPError { urlPath, shouldRedirect := canonicalisePath(r.URL.Path) |