mirror of https://github.com/jlelse/GoBlog
Simple blogging system written in Go
https://goblog.app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
326 B
14 lines
326 B
package main |
|
|
|
import ( |
|
ts "git.jlel.se/jlelse/template-strings" |
|
) |
|
|
|
func (a *goBlog) initTemplateStrings() (err error) { |
|
var blogLangs []string |
|
for _, b := range a.cfg.Blogs { |
|
blogLangs = append(blogLangs, b.Lang) |
|
} |
|
a.ts, err = ts.InitTemplateStrings("templates/strings", ".yaml", "default", blogLangs...) |
|
return err |
|
}
|
|
|