Class: Jekyll::Drops::UnifiedPayloadDrop

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

Instance Method Summary collapse

Instance Method Details

#themeObject

Register a namespace to easily call subkeys under key in the _config.yml within a theme-gem via its bundled templates. e.g. with this drop, theme-specific variables usually called like site.minima.date_format } can be shortened to simply theme.date_format }.



11
12
13
14
15
16
# File 'lib/jekyll/theme_drop.rb', line 11

def theme
  @theme_drop ||= begin
    config = site.send(:fallback_data)
    config[config["theme"]]
  end
end