flounder

A simple gemini site builder
git clone git://git.alexwennerberg.com/flounder
Log | Files | Refs | README | LICENSE

commit 4ae5860cdcdf8dc4c035574c7e97de4d641423aa
parent c5a51786c8e2a261e59b4e10c4dc32b702f38212
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat, 15 Oct 2022 19:10:58 -0700

remove link icon its ugly

Diffstat:
Mgmi2html.go | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gmi2html.go b/gmi2html.go @@ -92,20 +92,20 @@ func textToHTML(reqUrl *url.URL, text gemini.Text) ConvertedGmiDoc { text := string(l.(gemini.LinePreformattedText)) fmt.Fprintf(&b, "%s\n", html.EscapeString(text)) case gemini.LineHeading1: - text := string(l.(gemini.LineHeading1)) - fmt.Fprintf(&b, "<h1>%s</h1>\n", html.EscapeString(text)) + text := html.EscapeString(string(l.(gemini.LineHeading1))) + fmt.Fprintf(&b, "<h1 id='%s'>%s</h1>\n", text, text) if title == "" { title = text } // TODO deal with repetition case gemini.LineHeading2: text := html.EscapeString(string(l.(gemini.LineHeading2))) - fmt.Fprintf(&b, "<h2 id='%s'>%s <a href='#%s'>🔗</a></h2>\n", text, text, text) + fmt.Fprintf(&b, "<h2 id='%s'>%s</h2>\n", text, text) if title == "" { title = text } case gemini.LineHeading3: text := html.EscapeString(string(l.(gemini.LineHeading3))) - fmt.Fprintf(&b, "<h3 id='%s'>%s <a href='#%s'>🔗</a></h3>\n", text, text, text) + fmt.Fprintf(&b, "<h3 id='%s'>%s</h3>\n", text, text) if title == "" { title = text }