X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=cmd%2Fsgblog%2Fgemini-menu.tmpl;h=756b79cbd3f9f53a92a1f640b2d6c18e4a97be09;hb=bec350105fae0b0d2719a347c47929817ba57a7d;hp=e8f86bca38e8aa2c74b569f9157d51e1a915c117;hpb=8ec70b5cbc17244bc3627bb7a99e27b94834d419;p=sgblog.git diff --git a/cmd/sgblog/gemini-menu.tmpl b/cmd/sgblog/gemini-menu.tmpl index e8f86bc..756b79c 100644 --- a/cmd/sgblog/gemini-menu.tmpl +++ b/cmd/sgblog/gemini-menu.tmpl @@ -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}}