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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cc71ac0ff8f975402bfa4fd85d83b5f0e6b48450b959f60e03191960049ee76
4
- data.tar.gz: 0c416b47b2f74b7a86aaac7dd792e4a051370fdaecb122266659b0ba78a98359
3
+ metadata.gz: 2a5406b43b234c4eab914cbe366a9dff2df7fd6d3a059aa4adb019f6a40fca6a
4
+ data.tar.gz: 79a0f3c62d38cc1c8c784334d7e5dffefc7a7dda00a147f89ff12b809497c4f5
5
5
  SHA512:
6
- metadata.gz: ace5ad2069db7f6eff29ffc2cf5ede2c3c1058b795fee5ab99f442dc6bbe57587319ab1d2beb2a3fc32398a16e5b5cb14b6b732b6326dcdc7230be5873c0d4e4
7
- data.tar.gz: 1a662eb68d279b9dad5935e7b9412929fa076cc267e70cc6378874b3d2b503e0beee50bb9334611418fd4dd09b138d4ae4ebbb23e60b9d8c8b12c0b69144b48e
6
+ metadata.gz: f4ddb00749e33513ae298072160ac6098a1e1f916ca3e6cbdd7ded615977209608eb6283aa73bba32128fc2f6512c196dc1c49fab83d62798e454e4fb7e2bf9f
7
+ data.tar.gz: 303ad7a19090779ffb7240522dd2adb7c338eeb6e0105f515eb3f0fd450563a22849be6a197edcd6aac31437620f1d6d9b248d01b1bdf916c86804e146fe230d
@@ -18,9 +18,9 @@ module Jekyll
18
18
  # @return [nil]
19
19
  # --
20
20
  def self.setup!
21
- Jekyll::Hooks.register :site, :pre_render do |s, _|
22
- convert_p!(s)
23
- convert_l!(s)
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
- v.content = Processor.run_for(v.content, {
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.convert_p!(site)
44
- site.pages.each do |v|
45
- v.content = Processor.run_for(v.content, {
46
- ext: v.ext,
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!
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Jekyll
6
6
  module Tilt
7
- VERSION = "1.0.1"
7
+ VERSION = "1.0.2"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-tilt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell