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 +4 -4
- data/jekyll-wns.gemspec +1 -1
- data/lib/jekyll-wns/register_hooks.rb +11 -3
- 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: 15e91d37d865ed42046e37f966254d7677a1c4cbb6f1bc0aed66563db24957ca
|
4
|
+
data.tar.gz: e3c28d73df0d986bc40664ad0cf4108bcc4c0cff2e1aa26daa33eda68890282e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 139ff2525f0a3b3895a9ef82a7671cfe7978a960f791b107718e3726827c1556bd8f39179c7815ecf4e0df4f09aa5add4a40fc39c2cc96c5295cabbac0f35f06
|
7
|
+
data.tar.gz: '0197f8cf54e680d458544df89abc4272b3b85db50bbbc2a8ba9889b9e61e76b46587a8fa805d81f39548df9c0471ea556dd065eed385e5c6fc137b6328faa1fb'
|
data/jekyll-wns.gemspec
CHANGED
@@ -1,13 +1,21 @@
|
|
1
1
|
Jekyll::Hooks.register :pages, :pre_render do |document|
|
2
|
-
if document.
|
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
|