Class: Jekyll::PageExcerpt

Inherits:
Excerpt
  • Object
show all
Defined in:
lib/jekyll/page_excerpt.rb

Instance Attribute Summary collapse

Attributes inherited from Excerpt

#content, #ext, #output

Instance Method Summary collapse

Methods inherited from Excerpt

#data, #include?, #initialize, #path, #place_in_layout?, #relative_path, #to_s, #trigger_hooks

Constructor Details

This class inherits a constructor from Jekyll::Excerpt

Instance Attribute Details

#docObject (readonly)

Returns the value of attribute doc.



5
6
7
# File 'lib/jekyll/page_excerpt.rb', line 5

def doc
  @doc
end

Instance Method Details

#inspectObject



21
22
23
# File 'lib/jekyll/page_excerpt.rb', line 21

def inspect
  "#<#{self.class} id=#{id.inspect}>"
end

#render_with_liquid?Boolean

Returns:

  • (Boolean)


15
16
17
18
19
# File 'lib/jekyll/page_excerpt.rb', line 15

def render_with_liquid?
  return false if data["render_with_liquid"] == false

  Jekyll::Utils.has_liquid_construct?(content)
end

#to_liquidObject



11
12
13
# File 'lib/jekyll/page_excerpt.rb', line 11

def to_liquid
  @to_liquid ||= doc.to_liquid(EXCERPT_ATTRIBUTES)
end