Skip to content

Commit 481cb24

Browse files
authored
Merge pull request #29 from ashmaroli/theme-drop-patch
Base theme-drop on fallback-data
2 parents c70540c + 8959eec commit 481cb24

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/jekyll/theme_drop.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@
33
module Jekyll
44
module Drops
55
class UnifiedPayloadDrop < Drop
6-
def site
7-
@site_drop ||= JekyllData::ThemedSiteDrop.new(@obj)
8-
end
9-
106
# Register a namespace to easily call subkeys under <theme-name> key
117
# in the _config.yml within a theme-gem via its bundled templates.
128
# e.g. with this drop, theme-specific variables usually called like
139
# {{ site.minima.date_format }} can be shortened to simply
1410
# {{ theme.date_format }}.
1511
def theme
16-
@theme_drop ||= site[site.theme.name]
12+
@theme_drop ||= site.fallback_data[site.fallback_data["theme"]]
1713
end
1814
end
1915
end

0 commit comments

Comments
 (0)