1
0
Fork 0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-05-14 16:36:04 +02:00

Use text/template for Atom feed template

This commit is contained in:
Adnan Maolood 2021-05-09 19:58:54 -04:00
parent eca5dda9d6
commit c285fe4ff8

View File

@ -90,7 +90,7 @@ func (t *Templates) Load(dir string, exts []string) error {
atom := pathpkg.Join(path, "atom.xml")
if _, err := os.Stat(atom); err == nil {
name := strings.TrimPrefix(atom, dir)
t.loadHTMLTemplate(name, atom)
t.LoadTemplate(name, atom)
}
// Load page templates