jekyll-wns 3.5.1 → 4.0.0

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: 212a115bb9534e3bd5fceca3a5c001847da18208413168ece8decb2ac9c498e7
4
- data.tar.gz: c3db8b878818c05bca17e1d6f63a4eb12142edcef9c1c455adf33d40cd93e603
3
+ metadata.gz: 15e91d37d865ed42046e37f966254d7677a1c4cbb6f1bc0aed66563db24957ca
4
+ data.tar.gz: e3c28d73df0d986bc40664ad0cf4108bcc4c0cff2e1aa26daa33eda68890282e
5
5
  SHA512:
6
- metadata.gz: 9128ba9e5a683b6e33f18ce991f84ce1149ae8fead9b48f8a67e831d775c481384610ea8c4ca10cadaf7df23ae3c5e72676971930becd55a7912cb1b013c6562
7
- data.tar.gz: 0314b3fb90e2e49db72182bfa09759dc28105fb4b12d76a8c3ab0dabe20425f91050828316733b6c036a71c5e496edad21bbacf364615115315189d445b06d95
6
+ metadata.gz: 139ff2525f0a3b3895a9ef82a7671cfe7978a960f791b107718e3726827c1556bd8f39179c7815ecf4e0df4f09aa5add4a40fc39c2cc96c5295cabbac0f35f06
7
+ data.tar.gz: '0197f8cf54e680d458544df89abc4272b3b85db50bbbc2a8ba9889b9e61e76b46587a8fa805d81f39548df9c0471ea556dd065eed385e5c6fc137b6328faa1fb'
data/jekyll-wns.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "jekyll-wns"
5
- spec.version = "3.5.1"
5
+ spec.version = "4.0.0"
6
6
  spec.authors = ["Thai Chung"]
7
7
  spec.email = ["mail@0xReki.de"]
8
8
  spec.summary = "Collection of Filters, Tags and Hooks I use."
@@ -1,13 +1,21 @@
1
1
  Jekyll::Hooks.register :pages, :pre_render do |document|
2
- if document.page.path =~ /(.md|.html)/
2
+ if document.path =~ /(.md|.html)/
3
+ WNS::Quads::insert_quads_into_document! document
4
+ end
5
+ end
6
+
7
+ Jekyll::Hooks.register :pages, :post_render do |document|
8
+ if document.path =~ /(.md|.html)/
3
9
  WNS::Abbreviations::replace_abbreviations! document
4
10
  WNS::LabelUnicode::label_unicode! document
5
- WNS::Quads::insert_quads_into_document! document
6
11
  end
7
12
  end
8
13
 
9
14
  Jekyll::Hooks.register :posts, :pre_render do |document|
15
+ WNS::Quads::insert_quads_into_document! document
16
+ end
17
+
18
+ Jekyll::Hooks.register :posts, :post_render do |document|
10
19
  WNS::Abbreviations::replace_abbreviations! document
11
20
  WNS::LabelUnicode::label_unicode! document
12
- WNS::Quads::insert_quads_into_document! document
13
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-wns
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.1
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thai Chung