diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-02-17 13:30:50 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-02-17 17:15:26 +0100 |
commit | c507e2717df7dd4b870478033bc5ece0b039a8c4 (patch) | |
tree | 873684fe890f1d23749ecbdbe8303712b6d9fafa /hugolib/sitemap_test.go | |
parent | 93ca7c9e958e34469a337e4efcc7c75774ec50fd (diff) | |
download | hugo-c507e2717df7dd4b870478033bc5ece0b039a8c4.tar.gz hugo-c507e2717df7dd4b870478033bc5ece0b039a8c4.zip |
tpl: Refactor package
Now:
* The template API lives in /tpl
* The rest lives in /tpl/tplimpl
This is bound te be more improved in the future.
Updates #2701
Diffstat (limited to 'hugolib/sitemap_test.go')
-rw-r--r-- | hugolib/sitemap_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/sitemap_test.go b/hugolib/sitemap_test.go index 8bbcb487b..daefde524 100644 --- a/hugolib/sitemap_test.go +++ b/hugolib/sitemap_test.go @@ -19,7 +19,7 @@ import ( "reflect" "github.com/spf13/hugo/deps" - "github.com/spf13/hugo/tplapi" + "github.com/spf13/hugo/tpl" ) const sitemapTemplate = `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> @@ -48,7 +48,7 @@ func doTestSitemapOutput(t *testing.T, internal bool) { depsCfg := deps.DepsCfg{Fs: fs, Cfg: cfg} if !internal { - depsCfg.WithTemplate = func(templ tplapi.Template) error { + depsCfg.WithTemplate = func(templ tpl.Template) error { templ.AddTemplate("sitemap.xml", sitemapTemplate) return nil } |