class Jekyll::Drops::UnifiedPayloadDrop

Public Instance Methods

theme() click to toggle source

Register a namespace to easily call subkeys under <theme-name> 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 }}.
# File lib/jekyll/theme_drop.rb, line 11
def theme
  @theme_drop ||= begin
    config = site.send(:fallback_data)
    config[config["theme"]]
  end
end