File tree Expand file tree Collapse file tree 5 files changed +29
-97
lines changed Expand file tree Collapse file tree 5 files changed +29
-97
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ module JekyllData
9
9
end
10
10
11
11
# Monkey-patches
12
- require_relative "jekyll/theme"
13
12
require_relative "jekyll/build_options"
14
- require_relative "jekyll/unified_payload_drop"
13
+ require_relative "jekyll/data_path"
14
+ require_relative "jekyll/theme_drop"
15
15
16
16
# ----------------------------------------------------------------------------
17
17
# Modify the current site instance if it uses a gem-based theme else have this
Original file line number Diff line number Diff line change
1
+ module Jekyll
2
+ class Theme
3
+ def data_path
4
+ path_for "_data" . freeze
5
+ end
6
+ end
7
+ end
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # encoding: UTF-8
2
+
3
+ module Jekyll
4
+ module Drops
5
+ class UnifiedPayloadDrop < Drop
6
+ def site
7
+ @site_drop ||= JekyllData ::ThemedSiteDrop . new ( @obj )
8
+ end
9
+
10
+ # Register a namespace to easily call subkeys under <theme-name> key
11
+ # in the _config.yml within a theme-gem via its bundled templates.
12
+ # e.g. with this drop, theme-specific variables usually called like
13
+ # {{ site.minima.date_format }} can be shortened to simply
14
+ # {{ theme.date_format }}.
15
+ def theme
16
+ @theme_drop ||= site [ site . theme . name ]
17
+ end
18
+ end
19
+ end
20
+ end
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments