]> Sergey Matveev's repositories - sgblog.git/blob - cmd/sgblog/gopher-entry.tmpl
Images in gopher/gemini
[sgblog.git] / cmd / sgblog / gopher-entry.tmpl
1 {{$Cfg := .Cfg -}}{{$.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 .Images}}
8 ------------------------------------------------------------------------
9 {{range $idx, $img := .Images}}http://{{$Cfg.ImgDomain}}/{{$img.Path}}
10 {{end}}{{end -}}
11 {{- if .Note}}
12 ------------------------------------------------------------------------
13 {{$.T.Get "Note"}}:
14 {{.Note}}{{end -}}
15 {{- if .Cfg.CommentsEmail}}
16 ------------------------------------------------------------------------
17 {{$.T.Get "leave a comment"}}: mailto:{{.Cfg.CommentsEmail}}?subject={{.TitleEscaped}}
18 {{end}}{{range $idx, $comment := .Comments}}
19 ------------------------------------------------------------------------
20 {{$.T.Get "comment"}} {{$idx}}:
21 {{$comment}}
22 {{end}}
23 ------------------------------------------------------------------------
24 {{$.T.Get "Generated by"}}: SGBlog {{.Version}}