aboutsummaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2024-06-22 18:53:30 -0700
committerJordan <me@jordan.im>2024-06-22 18:53:30 -0700
commit9339a52bf2a3a6cf360403ed856b08a313729edb (patch)
treeec895f7fdf9d960ec391f257dfd43a3587d572b5 /http.go
parenta8f6c3ef6fa19e46f6ddf57177b5c6a178f77e4d (diff)
downloadcrane-9339a52bf2a3a6cf360403ed856b08a313729edb.tar.gz
crane-9339a52bf2a3a6cf360403ed856b08a313729edb.zip
templates: new design, cleanup
Diffstat (limited to 'http.go')
-rw-r--r--http.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/http.go b/http.go
index adaabc7..bdac799 100644
--- a/http.go
+++ b/http.go
@@ -19,18 +19,21 @@ var funcMap = template.FuncMap{
var indexTemp = template.Must(template.New("index.html").Funcs(funcMap).ParseFiles(
filepath.Join(templateDir, "layout.html"),
filepath.Join(templateDir, "index.html"),
+ filepath.Join(templateDir, "topics.html"),
filepath.Join(templateDir, "list.html"),
))
var adminTemp = template.Must(template.New("admin.html").Funcs(funcMap).ParseFiles(
filepath.Join(templateDir, "admin.html"),
filepath.Join(templateDir, "layout.html"),
+ filepath.Join(templateDir, "topics.html"),
filepath.Join(templateDir, "list.html"),
))
var editTemp = template.Must(template.New("admin-edit.html").Funcs(funcMap).ParseFiles(
filepath.Join(templateDir, "admin-edit.html"),
filepath.Join(templateDir, "layout.html"),
+ filepath.Join(templateDir, "topics.html"),
filepath.Join(templateDir, "list.html"),
))