]> Sergey Matveev's repositories - sgblog.git/blobdiff - cmd/sgblog/gopher-entry.tmpl
Images in gopher/gemini
[sgblog.git] / cmd / sgblog / gopher-entry.tmpl
index 164cb6ca391ddcee20eed2acbab493fc3662696d..3235123507637a24828b647c5fa9a8cfb3c44fbb 100644 (file)
@@ -1,9 +1,13 @@
-{{$.T.Get "What"}}: {{.Commit.Hash.String}}
+{{$Cfg := .Cfg -}}{{$.T.Get "What"}}: {{.Commit.Hash.String}}
 {{$.T.Get "When"}}: {{.When}}
 ------------------------------------------------------------------------
 {{if .Topics}}{{$.T.Get "Topics"}}:{{range .Topics}} {{.}}{{end}}{{end}}
 ------------------------------------------------------------------------
 {{.Commit.Message -}}
+{{- if .Images}}
+------------------------------------------------------------------------
+{{range $idx, $img := .Images}}http://{{$Cfg.ImgDomain}}/{{$img.Path}}
+{{end}}{{end -}}
 {{- if .Note}}
 ------------------------------------------------------------------------
 {{$.T.Get "Note"}}: