URI: 
       Revert "Restrict the new type layout resolution to page and section kinds" - hugo - [fork] hugo port for 9front
  HTML git clone git@git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 5dc1f95b63267fe93aca09b3bf0d59b2484c21e4
   DIR parent 6bc892fc24a923db07c07863270efcf4a4459667
  HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
       Date:   Mon,  9 Jul 2018 10:29:16 +0200
       
       Revert "Restrict the new type layout resolution to page and section kinds"
       
       This reverts commit 78e8a744b34e885e8169bf0a8bb64c73288e555a.
       
       Diffstat:
         M hugolib/page.go                     |      18 ++++++++----------
       
       1 file changed, 8 insertions(+), 10 deletions(-)
       ---
   DIR diff --git a/hugolib/page.go b/hugolib/page.go
       @@ -414,16 +414,14 @@ func (p *Page) createLayoutDescriptor() output.LayoutDescriptor {
        
                var typeCurrentSection string
                var typeRootSection string
       -        if p.Kind == KindPage || p.Kind == KindSection {
       -                curr := p.CurrentSection()
       -                // Make sure we use the contentType only. This is the value from front matter.
       -                if curr != nil {
       -                        typeCurrentSection = curr.contentType
       -                }
       -                first := p.FirstSection()
       -                if first != nil {
       -                        typeRootSection = first.contentType
       -                }
       +        curr := p.CurrentSection()
       +        // Make sure we use the contentType only. This is the value from front matter.
       +        if curr != nil {
       +                typeCurrentSection = curr.contentType
       +        }
       +        first := p.FirstSection()
       +        if first != nil {
       +                typeRootSection = first.contentType
                }
        
                return output.LayoutDescriptor{