]> Sergey Matveev's repositories - sgblog.git/blob - cmd/sgblog/gopher-entry.tmpl
Templates translation
[sgblog.git] / cmd / sgblog / gopher-entry.tmpl
1 {{$.T.Get "What"}}: {{.Commit.Hash.String}}
2 {{$.T.Get "When"}}: {{.When}}
3 ------------------------------------------------------------------------
4 {{if .Topics}}{{$.T.Get "Topics"}}:{{range .Topics}} {{.}}{{end}}{{end}}
5 ------------------------------------------------------------------------
6 {{.Commit.Message -}}
7 {{- if .Note}}
8 ------------------------------------------------------------------------
9 {{$.T.Get "Note"}}:
10 {{.Note}}{{end -}}
11 {{- if .Cfg.CommentsEmail}}
12 ------------------------------------------------------------------------
13 {{$.T.Get "leave a comment"}}: mailto:{{.Cfg.CommentsEmail}}?subject={{.TitleEscaped}}
14 {{end}}{{range $idx, $comment := .Comments}}
15 ------------------------------------------------------------------------
16 {{$.T.Get "comment"}} {{$idx}}:
17 {{$comment}}
18 {{end}}
19 ------------------------------------------------------------------------
20 {{$.T.Get "Generated by"}}: SGBlog {{.Version}}