From 541790e7e84070301be31c183921650200211696 Mon Sep 17 00:00:00 2001 From: Amolith Date: Sat, 18 Oct 2025 20:31:21 -0600 Subject: [PATCH] fix(web): add Repo field to AboutData struct The base.html template checks for .Repo to conditionally render repository navigation. AboutData was missing this field, causing template execution to fail with "can't evaluate field Repo". Adding the nil Repo field allows the {{if .Repo}} check to work correctly, skipping repository navigation on the about page. Co-authored-by: Crush --- pkg/web/webui_about.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/web/webui_about.go b/pkg/web/webui_about.go index e737627725fde85c91cc244291732ff43955fb08..b3f0c75cab369559142a772921ff643ccb8f5961 100644 --- a/pkg/web/webui_about.go +++ b/pkg/web/webui_about.go @@ -7,10 +7,12 @@ import ( "github.com/charmbracelet/log/v2" "github.com/charmbracelet/soft-serve/pkg/backend" "github.com/charmbracelet/soft-serve/pkg/config" + "github.com/charmbracelet/soft-serve/pkg/proto" ) type AboutData struct { BaseData + Repo proto.Repository ReadmeHTML template.HTML }