summaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-08 21:32:28 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-08 21:32:28 +0200
commit0f3b1051228328718798fe0b40d02fdb72e3481f (patch)
tree2e3035d10e2ce7dcae2461615e6f428d7ab1a2cd /main.go
parentd02494343cbf2d77fa16e2c3ee56426c73654135 (diff)
Rename some components
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 17c2253..53e2a00 100644
--- a/main.go
+++ b/main.go
@@ -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)
}
}