X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=cmd%2Fsgblog%2Fhttp-index.tmpl;h=6056fc7b7ae607f3c151d3da37cafdb289eb6063;hb=bec350105fae0b0d2719a347c47929817ba57a7d;hp=523096d312a9f774bab16c167a7b0b5362d53c1a;hpb=8ec70b5cbc17244bc3627bb7a99e27b94834d419;p=sgblog.git diff --git a/cmd/sgblog/http-index.tmpl b/cmd/sgblog/http-index.tmpl index 523096d..6056fc7 100644 --- a/cmd/sgblog/http-index.tmpl +++ b/cmd/sgblog/http-index.tmpl @@ -6,34 +6,33 @@
N | When | Title | -L | -C | -Linked to | - {{if .TopicsEnabled}}Topics | {{end}} +N | {{$.T.Get "When"}} | {{$.T.Get "Title"}} | +L | +C | +{{$.T.Get "Linked to"}} | + {{if .TopicsEnabled}}{{$.T.Get "Topics"}} | {{end}}
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{.Num}} | {{.Commit.Author.When.Format "15:04"}} | -{{.Title}} | +{{.Title}} | {{.LinesNum}} | {{if .CommentsNum}}{{.CommentsNum}}{{else}} {{end}} | {{if .DomainURLs}}{{range .DomainURLs}} {{.}} {{end}}{{else}} {{end}} | - {{if $TopicsEnabled}}{{if .Topics}}{{range .Topics}} {{.}} {{end}}{{else}} {{end}} | {{end}} + {{if $TopicsEnabled}}{{if .Topics}}{{range .Topics}} {{.}} {{end}}{{else}} {{end}} | {{end}}