Do not consider single.html for the home page
authorbep <bjorn.erik.pedersen@gmail.com>
Thu, 21 May 2015 18:12:25 +0000 (20:12 +0200)
committerbep <bjorn.erik.pedersen@gmail.com>
Thu, 21 May 2015 18:12:18 +0000 (20:12 +0200)
Fixes #1152

hugolib/site.go

index 9b63e569b86d894c6832195ec43e1e4c4793b0fa..82cdc2aceea5b2f5899e64575d63f36e7f0ee988 100644 (file)
@@ -1241,7 +1241,7 @@ func (s *Site) newHomeNode() *Node {
 
 func (s *Site) RenderHomePage() error {
        n := s.newHomeNode()
-       layouts := s.appendThemeTemplates([]string{"index.html", "_default/list.html", "_default/single.html"})
+       layouts := s.appendThemeTemplates([]string{"index.html", "_default/list.html"})
 
        if err := s.renderAndWritePage("homepage", helpers.FilePathSeparator, n, layouts...); err != nil {
                return err