cmd/sgblog/http-entry.tmpl | 2 +-
cmd/sgblog/http-index.tmpl | 2 +-
cmd/sgblog/http.go | 10 ++++++----
diff --git a/cmd/sgblog/http-entry.tmpl b/cmd/sgblog/http-entry.tmpl
index 8aacbefcfb268541fcbba4150bbfd0b9ceb44844142e19ee5882260418ee9cfc..3fa0d4691ddb12562778d258fa4cfcb7e9ad2919bd8ccde5a70a534f8660ad83 100644
--- a/cmd/sgblog/http-entry.tmpl
+++ b/cmd/sgblog/http-entry.tmpl
@@ -1,7 +1,7 @@
{{$Cfg := .Cfg}}
-
+
{{.Title}} ({{.When}})
{{with .Cfg.CSS}}{{end}}
diff --git a/cmd/sgblog/http-index.tmpl b/cmd/sgblog/http-index.tmpl
index 4de1b0132810e0f4c9ca9b67582e70d473ac7ec04c20f2bf6a35a17b9b71cd26..c7d4e56ba2561ed6a8cd9609c2b078348d6282c05bf4ca3ada89152be01803c6 100644
--- a/cmd/sgblog/http-index.tmpl
+++ b/cmd/sgblog/http-index.tmpl
@@ -1,7 +1,7 @@
-
+
{{.Cfg.Title}} {{if .Topic}}(topic: {{.Topic}}) {{end}}({{.Offset}}-{{.OffsetNext}})
{{with .Cfg.CSS}}{{end}}
diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go
index e2620951e2b3527f61fff2b716642d8e1c08b296a784ddf07a13e6763cfe0876..03abdf309c708c326de69c4827a2a35a7b29faa656e72b4c398e93418997a0ab 100644
--- a/cmd/sgblog/http.go
+++ b/cmd/sgblog/http.go
@@ -128,7 +128,7 @@ }
func startHeader(etag hash.Hash, gziped bool) string {
lines := []string{
- "Content-Type: text/html; charset=UTF-8",
+ "Content-Type: text/html; charset=utf-8",
"ETag: " + etagString(etag),
}
if gziped {
@@ -141,7 +141,7 @@ }
func makeErr(err error, status int) {
fmt.Println("Status:", status)
- fmt.Print("Content-Type: text/plain; charset=UTF-8\n\n")
+ fmt.Print("Content-Type: text/plain; charset=utf-8\n\n")
fmt.Println(err)
log.Fatalln(err)
}
@@ -477,7 +477,9 @@ break
}
lines := msgSplit(commit.Message)
var categories []atom.Category
- for _, topic := range sgblog.ParseTopics(sgblog.GetNote(repo, topicsTree, commit.Hash)) {
+ for _, topic := range sgblog.ParseTopics(sgblog.GetNote(
+ repo, topicsTree, commit.Hash,
+ )) {
categories = append(categories, atom.Category{Term: topic})
}
htmlized := make([]string, 0, len(lines))
@@ -774,7 +776,7 @@ os.Stdout.Write(outBuf.Bytes())
return
AtomFinish:
- os.Stdout.WriteString("Content-Type: application/atom+xml; charset=UTF-8\n")
+ os.Stdout.WriteString("Content-Type: application/atom+xml; charset=utf-8\n")
os.Stdout.WriteString("ETag: " + etagString(etagHash) + "\n")
if gzipWriter != nil {
os.Stdout.WriteString("Content-Encoding: gzip\n")