diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-09 10:29:18 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-09 10:29:18 +0200 |
commit | 179de5f5bc0336c9c279e851ea13202b7ffe572e (patch) | |
tree | a7f058536f5f0a240b352dbadad2def3f1a28b48 /output/layout.go | |
parent | 5dc1f95b63267fe93aca09b3bf0d59b2484c21e4 (diff) |
Revert "Consider root and current section's content type if set in front matter"
This reverts commit c790029e1dbb0b66af18d05764bd6045deb2e180.
Diffstat (limited to 'output/layout.go')
-rw-r--r-- | output/layout.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/output/layout.go b/output/layout.go index 2483093b0..f83490d81 100644 --- a/output/layout.go +++ b/output/layout.go @@ -35,12 +35,6 @@ type LayoutDescriptor struct { Kind string Lang string Layout string - - // Any potential type set in the page's current section and the root section - // it lives in. - TypeFirstSection string - TypeCurrentSection string - // LayoutOverride indicates what we should only look for the above layout. LayoutOverride bool } @@ -133,14 +127,6 @@ func resolvePageTemplate(d LayoutDescriptor, f Format) []string { b.addTypeVariations(d.Type) } - if d.TypeCurrentSection != "" { - b.addTypeVariations(d.TypeCurrentSection) - } - - if d.TypeFirstSection != "" { - b.addTypeVariations(d.TypeFirstSection) - } - switch d.Kind { case "page": b.addLayoutVariations("single") |