diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-08 21:32:28 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-08 21:32:28 +0200 |
commit | 0f3b1051228328718798fe0b40d02fdb72e3481f (patch) | |
tree | 2e3035d10e2ce7dcae2461615e6f428d7ab1a2cd /main.go | |
parent | d02494343cbf2d77fa16e2c3ee56426c73654135 (diff) |
Rename some components
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -18,9 +18,9 @@ import ( ) var components = map[string]templ.Component{ - "/": templates.Index(), + "/": templates.Root(), "/about": templates.About(), - "/coins": templates.CoinsIndex(), + "/coins": templates.Coins(), "/coins/designs": templates.CoinsDesigns(), "/language": templates.Language(), } @@ -71,7 +71,7 @@ func finalHandler(w http.ResponseWriter, r *http.Request) { Value: cmp.Or(r.Referer(), "/"), }) } - templates.Root(nil, c).Render(r.Context(), w) + templates.Base(nil, c).Render(r.Context(), w) } } |