Skip to content

Commit bb0447b

Browse files
committed
Jekyll::Drops::SiteDrop#fallback_data is private
1 parent 481cb24 commit bb0447b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/jekyll-data/themed_site_drop.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class ThemedSiteDrop < Jekyll::Drops::SiteDrop
99
def_delegator :@obj, :site_data, :data
1010
def_delegators :@obj, :theme
1111

12-
private
13-
def_delegator :@obj, :config, :fallback_data
12+
private def_delegator :@obj, :config, :fallback_data
1413
end
1514
end

lib/jekyll/theme_drop.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ class UnifiedPayloadDrop < Drop
99
# {{ site.minima.date_format }} can be shortened to simply
1010
# {{ theme.date_format }}.
1111
def theme
12-
@theme_drop ||= site.fallback_data[site.fallback_data["theme"]]
12+
@theme_drop ||= begin
13+
config = site.send(:fallback_data)
14+
config[config["theme"]]
15+
end
1316
end
1417
end
1518
end

0 commit comments

Comments
 (0)