lib/jekyll-titles-from-content/generator.rb
def inferred_title?(document)
      return false unless document.is_a?(Jekyll::Document)

      meta = read_yaml(File.dirname(document.path), File.basename(document.path))
      !meta.key?("title")
    end
# Documents (posts and collection items) have their title inferred from the filename.
#
# This is a terribly slow hack as we're reading the YAML for every document, but I can't find
# a better way of doing this as I can't find a method of obtaining the original unprocessed
# frontmatter.
Documents (posts and collection items) have their title inferred from the filename.
This is a terribly slow hack as we're reading the YAML for every document, but I can't find
a better way of doing this as I can't find a method of obtaining the original unprocessed
frontmatter.
Documents ( posts and collection items ) have their title inferred from the filename . This is a terribly slow hack as we ' re reading the YAML for every document but I can ' t find a better way of doing this as I can ' t find a method of obtaining the original unprocessed frontmatter .
def inferred_title?(document)
      return false unless document.is_a?(Jekyll::Document)
      meta = read_yaml(File.dirname(document.path), File.basename(document.path))
      !meta.key?("title")
    end
def inferred_title? ( document ) return false unless document . is_a? ( Jekyll :: Document ) meta = read_yaml ( File . dirname ( document . path ) , File . basename ( document . path ) ) ! meta . key? ( "title" ) end
Documents (posts and collection items) have their title inferred from the filename.
Documents ( posts and collection items ) have their title inferred from the filename .
document