From 20fef0b0b7ceb5523802d2bb842be82ef4d91e3e Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 28 Oct 2020 13:11:34 +0300 Subject: [PATCH] Include subject in comment URI --- README.texi | 2 +- cmd/sgblog/http.go | 4 +++- common.go | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.texi b/README.texi index 9ede008..51c4acc 100644 --- a/README.texi +++ b/README.texi @@ -69,7 +69,7 @@ Comments are posted through the email interface, just by sending the message to special address. For example: @example -$ mutt "mailto:comment@@blog.example.com?subject=576540a5b98517b46d0efc791bb90b9121bf147e" <{{.}} {{end}}
{{end}} -{{if .Cfg.CommentsEmail}}[leave comment]{{end}} +{{if .Cfg.CommentsEmail}}[leave comment]{{end}}
{{range $idx, $comment := .Comments}}
comment {{$idx}}:
@@ -785,6 +785,7 @@ func serveHTTP() { Version string Cfg *Cfg Title string + TitleEscaped string When string AtomCommentsURL string Parent string @@ -797,6 +798,7 @@ func serveHTTP() { Version: sgblog.Version, Cfg: cfg, Title: title, + TitleEscaped: strings.ReplaceAll(title, " ", "%20"), When: when, AtomCommentsURL: atomCommentsURL, Parent: parent, diff --git a/common.go b/common.go index 55d2d5f..821d5b3 100644 --- a/common.go +++ b/common.go @@ -2,6 +2,6 @@ package sgblog const ( - Version = "0.9.1" + Version = "0.10.0" WhenFmt = "2006-01-02 15:04:05Z07:00" ) -- 2.44.0