module Bridgetown::LayoutPlaceable

Public Instance Methods

no_layout?() click to toggle source
# File lib/bridgetown-core/concerns/layout_placeable.rb, line 13
def no_layout?
  data.layout.nil? || data.layout == "none" || data.layout == false
end
place_in_layout?() click to toggle source

Determine whether the file should be placed into layouts.

Returns false if the document is an asset file or if the front matter

specifies `layout: none`
# File lib/bridgetown-core/concerns/layout_placeable.rb, line 9
def place_in_layout?
  !(yaml_file? || no_layout?)
end