From 68049b58bcd3e9101b2541ed4c786a4c0366372d Mon Sep 17 00:00:00 2001 From: Arminas Date: Thu, 5 Jan 2023 18:44:44 +0200 Subject: [PATCH] Fixed highlighting Fixed about page not being highlighted in menu when selected --- handler/routes.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/handler/routes.go b/handler/routes.go index a7c5983..166e869 100644 --- a/handler/routes.go +++ b/handler/routes.go @@ -812,6 +812,9 @@ func ApplyServerConfig(db store.IStore, tmplBox *rice.Box) echo.HandlerFunc { // AboutPage handler func AboutPage() echo.HandlerFunc { return func(c echo.Context) error { - return c.Render(http.StatusOK, "about.html", map[string]interface{}{}) + return c.Render(http.StatusOK, "about.html", map[string]interface{}{ + "baseData": model.BaseData{Active: "about", CurrentUser: currentUser(c)}, + }) } } +