summaryrefslogtreecommitdiffstats
path: root/hugolib/site_render.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-13 17:21:42 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-14 19:59:51 +0100
commit51dd462c3958f7cf032b06503f1f200a6aceebb9 (patch)
tree6e153b1daa623729a7a469b996b15cf38ac5cf8e /hugolib/site_render.go
parentb6ea6d07d0b072d850fb066c78976acd6c2f5e81 (diff)
layout: Respect Type and Layout for list template selection
This commit also has some other nice side-effects: * The layout logic is unified for all page types, which should make it less surprising * Page.Render now supports all types * The legacy "indexes" type is removed from the template lookup order. This is an undocumented type from early Hugo days. This means that having a template in, say, `/layouts/indexes/list.html` will no longer work. * The theme override logic is improved. As an example, an `index.html` in theme will now wn over a `_default/list.html` in the project, which most will expect. Fixes #3005 Fixes #3245
Diffstat (limited to 'hugolib/site_render.go')
-rw-r--r--hugolib/site_render.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/hugolib/site_render.go b/hugolib/site_render.go
index 497433ff6..8f46e33ba 100644
--- a/hugolib/site_render.go
+++ b/hugolib/site_render.go
@@ -242,7 +242,6 @@ func (s *Site) renderRSS(p *PageOutput) error {
layouts, err := s.layoutHandler.For(
p.layoutDescriptor,
- "",
p.outputFormat)
if err != nil {
return err