aboutsummaryrefslogtreecommitdiff
path: root/http/handlers/templates
diff options
context:
space:
mode:
Diffstat (limited to 'http/handlers/templates')
-rw-r--r--http/handlers/templates/functions/gemtext.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/http/handlers/templates/functions/gemtext.go b/http/handlers/templates/functions/gemtext.go
index bc7a31f..45ded45 100644
--- a/http/handlers/templates/functions/gemtext.go
+++ b/http/handlers/templates/functions/gemtext.go
@@ -75,10 +75,11 @@ func (g *Gemtext) funcGemtext(input any) (gemtext.HTML, error) {
translator.RenderLink = func(w io.Writer, urlStr, label string) error {
if u, err := url.Parse(urlStr); err == nil && u.Scheme == "gemini" {
urlStr = g.GatewayURL + u.Host + u.Path
+ label += " (proxied)"
}
_, err := fmt.Fprintf(
- w, "<p><a href=\"%s\">%s (proxied)</a></p>\n", urlStr, label,
+ w, "<p><a href=\"%s\">%s</a></p>\n", urlStr, label,
)
return err
}