From a815c291074b454d4bb1a31067cd363c84df1360 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Fri, 12 Dec 2025 19:21:22 +0100 Subject: refactor(frontend): remove JS files --- backend/config.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'backend/config.go') diff --git a/backend/config.go b/backend/config.go index cd24592..44b2033 100644 --- a/backend/config.go +++ b/backend/config.go @@ -5,7 +5,6 @@ import ( "log/slog" "os" - "git.anhgelus.world/anhgelus/small-web/markdown" "github.com/pelletier/go-toml/v2" ) @@ -14,8 +13,8 @@ type Link struct { URL string `toml:"url"` } -func (l *Link) Render() template.HTML { - return markdown.RenderLink(l.Name, l.URL) +func (l *Link) Render(url string) template.HTML { + return renderLink(l.Name, l.URL, url) } type Logo struct { -- cgit v1.2.3