From 50f8bd4063aef2386966f353e7a139d62206fbe8 Mon Sep 17 00:00:00 2001 From: juanatsap Date: Mon, 10 Nov 2025 19:24:59 +0000 Subject: [PATCH] fix: add ViewSourceSubtext field to InfoModal struct - Added missing ViewSourceSubtext field to models.InfoModal - Resolves template rendering error that was preventing JavaScript from loading - Fixes toggleTheme is not defined error --- internal/models/cv.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/models/cv.go b/internal/models/cv.go index 7e380b4..3c51ad7 100644 --- a/internal/models/cv.go +++ b/internal/models/cv.go @@ -175,10 +175,11 @@ type UI struct { } type InfoModal struct { - Title string `json:"title"` - Description template.HTML `json:"description"` - TechStack TechStack `json:"techStack"` - ViewSource string `json:"viewSource"` + Title string `json:"title"` + Description template.HTML `json:"description"` + TechStack TechStack `json:"techStack"` + ViewSource string `json:"viewSource"` + ViewSourceSubtext string `json:"viewSourceSubtext"` } type TechStack struct {