about summary refs log tree commit diff stats
path: root/internal
diff options
context:
space:
mode:
authorAlan Pearce2024-06-25 18:13:56 +0200
committerAlan Pearce2024-06-25 18:13:56 +0200
commitb7d3ee578a0fa7c482c386242f2fc52c2600568a (patch)
tree8cdaed663e0a5eeb5c9ac79ef8fa6b6eb2d41363 /internal
parent14543af1635fffd07ff97e6d69a3ff70a85d1e3e (diff)
downloadwebsite-b7d3ee578a0fa7c482c386242f2fc52c2600568a.tar.lz
website-b7d3ee578a0fa7c482c386242f2fc52c2600568a.tar.zst
website-b7d3ee578a0fa7c482c386242f2fc52c2600568a.zip
fix early panic
Diffstat (limited to 'internal')
-rw-r--r--internal/website/mux.go1
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)