Class: Jekyll::Drops::UnifiedPayloadDrop

Inherits:
Drop
  • Object
show all
Defined in:
lib/jekyll/drops/unified_payload_drop.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content.



8
9
10
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 8

def content
  @content
end

#highlighter_prefixObject

Returns the value of attribute highlighter_prefix.



9
10
11
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 9

def highlighter_prefix
  @highlighter_prefix
end

#highlighter_suffixObject

Returns the value of attribute highlighter_suffix.



9
10
11
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 9

def highlighter_suffix
  @highlighter_suffix
end

#layoutObject

Returns the value of attribute layout.



8
9
10
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 8

def layout
  @layout
end

#pageObject

Returns the value of attribute page.



8
9
10
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 8

def page
  @page
end

#paginatorObject

Returns the value of attribute paginator.



8
9
10
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 8

def paginator
  @paginator
end

Instance Method Details

#jekyllObject



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

def jekyll
  JekyllDrop.global
end

#siteObject



15
16
17
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 15

def site
  @site_drop ||= ThemedSiteDrop.new(@obj)
end

#themeObject



19
20
21
22
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 19

def theme
  theme_name = site.theme.name
  site.data[theme_name]
end