mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
Use text/template for Atom feed template
This commit is contained in:
parent
86ab6169a5
commit
ce0b2cff1e
|
@ -90,7 +90,7 @@ func (t *Templates) Load(dir string, exts []string) error {
|
||||||
atom := pathpkg.Join(path, "atom.xml")
|
atom := pathpkg.Join(path, "atom.xml")
|
||||||
if _, err := os.Stat(atom); err == nil {
|
if _, err := os.Stat(atom); err == nil {
|
||||||
name := strings.TrimPrefix(atom, dir)
|
name := strings.TrimPrefix(atom, dir)
|
||||||
t.loadHTMLTemplate(name, atom)
|
t.LoadTemplate(name, atom)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load page templates
|
// Load page templates
|
||||||
|
|
Loading…
Reference in a new issue