mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
Revert "tpl: Rework to handle both text and HTML templates"
Will have to take another stab at this ...
This reverts commit 5c5efa03d2.
Closes #3260
This commit is contained in:
@@ -48,7 +48,7 @@ func doTestSitemapOutput(t *testing.T, internal bool) {
|
||||
depsCfg := deps.DepsCfg{Fs: fs, Cfg: cfg}
|
||||
|
||||
if !internal {
|
||||
depsCfg.WithTemplate = func(templ tpl.TemplateHandler) error {
|
||||
depsCfg.WithTemplate = func(templ tpl.Template) error {
|
||||
templ.AddTemplate("sitemap.xml", sitemapTemplate)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user