jekyll-tilt 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/tilt.rb +8 -12
- data/lib/jekyll/tilt/version.rb +1 -1
- 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: 2a5406b43b234c4eab914cbe366a9dff2df7fd6d3a059aa4adb019f6a40fca6a
|
4
|
+
data.tar.gz: 79a0f3c62d38cc1c8c784334d7e5dffefc7a7dda00a147f89ff12b809497c4f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4ddb00749e33513ae298072160ac6098a1e1f916ca3e6cbdd7ded615977209608eb6283aa73bba32128fc2f6512c196dc1c49fab83d62798e454e4fb7e2bf9f
|
7
|
+
data.tar.gz: 303ad7a19090779ffb7240522dd2adb7c338eeb6e0105f515eb3f0fd450563a22849be6a197edcd6aac31437620f1d6d9b248d01b1bdf916c86804e146fe230d
|
data/lib/jekyll/tilt.rb
CHANGED
@@ -18,9 +18,9 @@ module Jekyll
|
|
18
18
|
# @return [nil]
|
19
19
|
# --
|
20
20
|
def self.setup!
|
21
|
-
Jekyll::Hooks.register
|
22
|
-
|
23
|
-
|
21
|
+
Jekyll::Hooks.register(:site, :pre_render) { |s, _| convert_l!(s) }
|
22
|
+
Jekyll::Hooks.register [:documents, :pages], :pre_render do |d, _|
|
23
|
+
convert_d!(d)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
@@ -30,9 +30,7 @@ module Jekyll
|
|
30
30
|
# --
|
31
31
|
def self.convert_l!(site)
|
32
32
|
site.layouts.each_value do |v|
|
33
|
-
|
34
|
-
ext: v.ext,
|
35
|
-
})
|
33
|
+
convert_d!(v)
|
36
34
|
end
|
37
35
|
end
|
38
36
|
|
@@ -40,12 +38,10 @@ module Jekyll
|
|
40
38
|
# Convert pages
|
41
39
|
# @return [nil]
|
42
40
|
# --
|
43
|
-
def self.
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
})
|
48
|
-
end
|
41
|
+
def self.convert_d!(doc)
|
42
|
+
doc.content = Processor.run_for(doc.content, {
|
43
|
+
ext: doc.ext,
|
44
|
+
})
|
49
45
|
end
|
50
46
|
|
51
47
|
setup!
|
data/lib/jekyll/tilt/version.rb
CHANGED