From 242ba7f412d4e54f21385afff3f2b884f57f6ced Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 30 May 2024 15:06:28 +0200 Subject: feat: Add navbar selection --- pkg/handler/about/handler.go | 2 +- pkg/handler/config/handler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/handler') diff --git a/pkg/handler/about/handler.go b/pkg/handler/about/handler.go index a2caa4e..1acde60 100644 --- a/pkg/handler/about/handler.go +++ b/pkg/handler/about/handler.go @@ -50,7 +50,7 @@ func (g *AboutHandler) About(w http.ResponseWriter, _ *http.Request) { bs = markdown.Render(doc, renderer) - gitList := &templates.HelloPage{ + gitList := &templates.AboutPage{ Body: bs, } templates.WritePageTemplate(w, gitList) diff --git a/pkg/handler/config/handler.go b/pkg/handler/config/handler.go index c278e35..30f4283 100644 --- a/pkg/handler/config/handler.go +++ b/pkg/handler/config/handler.go @@ -56,7 +56,7 @@ func ConfigFile(configRepo configurationRepository) func(http.ResponseWriter, *h return } - hello := &templates.HelloPage{ + hello := &templates.ConfigPage{ Body: code.Bytes(), } -- cgit v1.2.3