jekyll-theme-assets-updated 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-theme-assets-updated.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d31f491e17aeaa586d5b0c8c4f052d11ee9bdf69b11d21a314c7de3980b7690f
|
4
|
+
data.tar.gz: b747430dbbe5117546a0f3cb14a18760b38ea5c894b85dfdad643f28416c33aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2039c995e8f109bc9725c8340753b5a607df9c3cde5649e0f118c53e7be1884fddbecfef1406362a16bf5a8ebaeec60347e8d47c40159645196fa85a6a82180
|
7
|
+
data.tar.gz: '0072384314fd79d03a1120985bb5f72d97496e943afc80c44ed748e38a4338faae2724fcb099d0f6c2d615d4784a8366dcd27f6a983d7b380831c3a913cdd29c'
|
@@ -4,12 +4,11 @@ require 'theme'
|
|
4
4
|
# Jekyll Assets hook to discover and register assets of a gem-based Jekyll theme.
|
5
5
|
Jekyll::Assets::Hook.register :env, :before_init do
|
6
6
|
# Nothing to do if there is no theme
|
7
|
-
|
7
|
+
return unless jekyll.theme.nil?
|
8
8
|
# fetch from theme's "assets" folder
|
9
9
|
fetch_theme_assets(jekyll.theme.public_assets_path)
|
10
10
|
# fetch from theme's "_assets" folder
|
11
11
|
fetch_theme_assets(jekyll.theme.private_assets_path)
|
12
|
-
end
|
13
12
|
end
|
14
13
|
|
15
14
|
private
|