Class: Jekyll::Drops::UnifiedPayloadDrop
- Inherits:
-
Drop
- Object
- Drop
- Jekyll::Drops::UnifiedPayloadDrop
- Defined in:
- lib/jekyll/theme_drop.rb
Instance Method Summary collapse
-
#theme ⇒ Object
Register a namespace to easily call subkeys under <theme-name> key in the _config.yml within a theme-gem via its bundled templates.
Instance Method Details
#theme ⇒ Object
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 }}.
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 |