aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_render.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-12-17 10:47:11 +0100
committerBjørn Erik Pedersen <[email protected]>2018-12-17 11:34:32 +0100
commitd5a0b6bbbc83a3e274c62ed397a293f04ee8d241 (patch)
tree2ff65eb4f678f08c5453b4fcf5ab4be59e793df9 /hugolib/site_render.go
parent5178cd13a7da3c5f5ec5d3217c9e40fc0be7152a (diff)
downloadhugo-d5a0b6bbbc83a3e274c62ed397a293f04ee8d241.tar.gz
hugo-d5a0b6bbbc83a3e274c62ed397a293f04ee8d241.zip
hugolib: Remove "double layout" lookup
Fixes #5390
Diffstat (limited to 'hugolib/site_render.go')
-rw-r--r--hugolib/site_render.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/site_render.go b/hugolib/site_render.go
index a8cdca255..4ce2b4c53 100644
--- a/hugolib/site_render.go
+++ b/hugolib/site_render.go
@@ -303,7 +303,7 @@ func (s *Site) render404() error {
s.Log.ERROR.Printf("Failed to create target path for page %q: %s", p, err)
}
- return s.renderAndWritePage(&s.PathSpec.ProcessingStats.Pages, "404 page", targetPath, pageOutput, s.appendThemeTemplates(nfLayouts)...)
+ return s.renderAndWritePage(&s.PathSpec.ProcessingStats.Pages, "404 page", targetPath, pageOutput, nfLayouts...)
}
func (s *Site) renderSitemap() error {
@@ -354,7 +354,7 @@ func (s *Site) renderSitemap() error {
addLanguagePrefix := n.Site.IsMultiLingual()
return s.renderAndWriteXML(&s.PathSpec.ProcessingStats.Sitemaps, "sitemap",
- n.addLangPathPrefixIfFlagSet(page.Sitemap.Filename, addLanguagePrefix), n, s.appendThemeTemplates(smLayouts)...)
+ n.addLangPathPrefixIfFlagSet(page.Sitemap.Filename, addLanguagePrefix), n, smLayouts...)
}
func (s *Site) renderRobotsTXT() error {
@@ -385,7 +385,7 @@ func (s *Site) renderRobotsTXT() error {
s.Log.ERROR.Printf("Failed to create target path for page %q: %s", p, err)
}
- return s.renderAndWritePage(&s.PathSpec.ProcessingStats.Pages, "Robots Txt", targetPath, pageOutput, s.appendThemeTemplates(rLayouts)...)
+ return s.renderAndWritePage(&s.PathSpec.ProcessingStats.Pages, "Robots Txt", targetPath, pageOutput, rLayouts...)
}