aboutsummaryrefslogtreecommitdiff
path: root/cmd/web
diff options
context:
space:
mode:
authorSamuel Johnson <[email protected]>2025-11-24 01:36:18 -0500
committerSamuel Johnson <[email protected]>2025-11-24 01:36:18 -0500
commit384a590b5462883d714bc1682e4d81d6321b2b12 (patch)
tree01d3ed55448948a2fe162b7209f0f2211770c9fb /cmd/web
parent177663c73f3d708120b975a74eebd0951177a53b (diff)
Improve page layout, add navbar
Diffstat (limited to 'cmd/web')
-rw-r--r--cmd/web/handlers/blog.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/web/handlers/blog.go b/cmd/web/handlers/blog.go
index 07ab361..bd2d97f 100644
--- a/cmd/web/handlers/blog.go
+++ b/cmd/web/handlers/blog.go
@@ -18,6 +18,8 @@ type blogContext struct {
}
func (ctx *blogContext) index(w http.ResponseWriter, r *http.Request) {
+ ctx.Rows = []models.Post{}
+
if r.URL.Path != "/" {
http.NotFound(w, r)
return