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 @@ {{.Cfg.Title}} {{if .Topic}}(topic: {{.Topic}}) {{end}}({{.Offset}}-{{.OffsetNext}}) {{with .Cfg.CSS}}{{end}} {{with .Cfg.Webmaster}}{{end}} - {{range .Cfg.GitURLs}}{{end}} - - - {{if .CommentsEnabled}}{{end}} - {{if .Offset}}{{end}} - {{if not .LogEnded}}{{end}} + {{range .Cfg.GitURLs}}{{end}} + + + {{if .CommentsEnabled}}{{end}} + {{if .Offset}}{{end}} + {{if not .LogEnded}}{{end}} -{{with .Cfg.AboutURL}}[about]{{end}} +{{with .Cfg.AboutURL}}[{{$.T.Get "about"}}]{{end}} {{block "links" .}} -{{if .Offset}}[prev]{{end}} -{{if not .LogEnded}}[next]{{end}} +{{if .Offset}}[{{$.T.Get "prev"}}]{{end}} +{{if not .LogEnded}}[{{$.T.Get "next"}}]{{end}} {{end}} -{{- $Cfg := .Cfg -}} {{if .Topics}}
-Topics: [ALL] -{{range .Topics}}[{{.}}] +{{$.T.Get "Topics"}}: [{{$.T.Get "ALL"}}] +{{range .Topics}}[{{.}}] {{end}} {{end}} {{- $TopicsEnabled := .TopicsEnabled -}} {{- $datePrev := "0001-01-01" -}} - - - - - {{if .TopicsEnabled}}{{end}} + + + + + {{if .TopicsEnabled}}{{end}} {{range .Entries -}} {{- $dateCur := .Commit.Author.When.Format "2006-01-02" -}} @@ -44,11 +43,11 @@ Topics: [ALL] - + - {{if $TopicsEnabled}}{{end}} + {{if $TopicsEnabled}}{{end}} {{end}}
NWhenTitleLCLinked toTopicsN{{$.T.Get "When"}}{{$.T.Get "Title"}}LC{{$.T.Get "Linked to"}}{{$.T.Get "Topics"}}
{{.Num}} {{.Commit.Author.When.Format "15:04"}}{{.Title}}{{.Title}} {{.LinesNum}} {{if .CommentsNum}}{{.CommentsNum}}{{else}} {{end}} {{if .DomainURLs}}{{range .DomainURLs}} {{.}} {{end}}{{else}} {{end}}{{if .Topics}}{{range .Topics}} {{.}} {{end}}{{else}} {{end}}{{if .Topics}}{{range .Topics}} {{.}} {{end}}{{else}} {{end}}
{{template "links" .}}