diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-12 19:21:22 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-12 19:21:22 +0100 |
| commit | a815c291074b454d4bb1a31067cd363c84df1360 (patch) | |
| tree | b04e3e048fdd15caff2c9127d7598b04b47178a7 /backend/config.go | |
| parent | d56090d43c925dbbd22a3e0c3f6d541674a09697 (diff) | |
refactor(frontend): remove JS files
Diffstat (limited to 'backend/config.go')
| -rw-r--r-- | backend/config.go | 5 |
1 files changed, 2 insertions, 3 deletions
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 { |
