]> Sergey Matveev's repositories - sgblog.git/blobdiff - cmd/sgblog/gemini-menu.tmpl
Templates translation
[sgblog.git] / cmd / sgblog / gemini-menu.tmpl
index e8f86bca38e8aa2c74b569f9157d51e1a915c117..756b79cbd3f9f53a92a1f640b2d6c18e4a97be09 100644 (file)
@@ -1,8 +1,8 @@
 {{$CR := printf "\r"}}20 text/gemini{{$CR}}
-# {{.Cfg.Title}} {{if .Topic}}(topic: {{.Topic}}) {{end}}({{.Offset}}-{{.OffsetNext}})
-{{if .Cfg.AboutURL}}=> {{.Cfg.AboutURL}} About{{end}}
-{{if .Offset}}=> /?offset={{.OffsetPrev}}{{if .Topic}}&topic={{.Topic}}{{end}} Prev{{end}}
-{{if not .LogEnded}}=> /?offset={{.OffsetNext}}{{if .Topic}}&topic={{.Topic}}{{end}} Next{{end}}
+# {{.Cfg.Title}} {{if .Topic}}({{$.T.Get "topic"}}: {{.Topic}}) {{end}}({{.Offset}}-{{.OffsetNext}})
+{{if .Cfg.AboutURL}}=> {{.Cfg.AboutURL}} {{$.T.Get "about"}}{{end}}
+{{if .Offset}}=> /?offset={{.OffsetPrev}}{{if .Topic}}&topic={{.Topic}}{{end}} {{$.T.Get "prev"}}{{end}}
+{{if not .LogEnded}}=> /?offset={{.OffsetNext}}{{if .Topic}}&topic={{.Topic}}{{end}} {{$.T.Get "next"}}{{end}}
 
 {{$datePrev := "0001-01-01" -}}
 {{- range .Entries -}}
@@ -14,4 +14,4 @@
 
 {{range .Topics -}}=> /?topic={{.}} Topic: {{.}}
 {{end}}
-Generated by: SGBlog {{.Version}}
+{{$.T.Get "Generated by"}}: SGBlog {{.Version}}