From: Sergey Matveev Date: Tue, 1 Dec 2020 14:30:20 +0000 (+0300) Subject: URLize feed entry, not just escape it X-Git-Tag: v0.12.0^0 X-Git-Url: http://www.git.stargrave.org/?p=sgblog.git;a=commitdiff_plain;h=47a5c5864b76aebe18145ed06891adbe498e3a19 URLize feed entry, not just escape it --- diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index 5b69fc5..11dd515 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -553,7 +553,7 @@ func serveHTTP() { htmlized := make([]string, 0, len(lines)) htmlized = append(htmlized, "
")
 			for _, l := range lines[2:] {
-				htmlized = append(htmlized, html.EscapeString(l))
+				htmlized = append(htmlized, lineURLize(cfg.AtomBaseURL+cfg.URLPrefix, l))
 			}
 			htmlized = append(htmlized, "
") feed.Entry = append(feed.Entry, &atom.Entry{ diff --git a/common.go b/common.go index 73ed5e5..20e6a7b 100644 --- a/common.go +++ b/common.go @@ -2,6 +2,6 @@ package sgblog const ( - Version = "0.11.0" + Version = "0.12.0" WhenFmt = "2006-01-02 15:04:05Z07:00" )