diff options
author | Jordan <me@jordan.im> | 2024-06-22 18:53:30 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2024-06-22 18:53:30 -0700 |
commit | 9339a52bf2a3a6cf360403ed856b08a313729edb (patch) | |
tree | ec895f7fdf9d960ec391f257dfd43a3587d572b5 /http.go | |
parent | a8f6c3ef6fa19e46f6ddf57177b5c6a178f77e4d (diff) | |
download | crane-9339a52bf2a3a6cf360403ed856b08a313729edb.tar.gz crane-9339a52bf2a3a6cf360403ed856b08a313729edb.zip |
templates: new design, cleanup
Diffstat (limited to 'http.go')
-rw-r--r-- | http.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"), )) |