serbea 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serbea/bridgetown_support.rb +10 -2
- data/lib/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: 34249683bdebe93a40e03acefcd4201f315144a5c87e1a83991ef9919e982153
|
4
|
+
data.tar.gz: e83e7b8e9dbefe2791f5f9d4301a000d5e53ddef6f4ce9cb281a4a089bbeadd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 511a5355a79a5afac0bd81787c8d40be68915e39bb2144d1ade08aae40bbc18bcf5ade5408f9295f048d21ef20d0ba4a9f16dc997534fa8a120de6d945b7db60
|
7
|
+
data.tar.gz: 1fc0bde29f6e0e532be6863648807d519cf37994ceec057a367e65ed542f4f4608aa14dca9a55a47997b34fd4c35dec2d4183ce8cba94f38a2763d485859aea2
|
@@ -58,8 +58,6 @@ module Bridgetown
|
|
58
58
|
if convertible.data[:template_engine] == "serbea" ||
|
59
59
|
(convertible.data[:template_engine].nil? &&
|
60
60
|
@config[:template_engine] == "serbea")
|
61
|
-
# make sure Liquid doesn't find {% %} and decide to process Serbea code!
|
62
|
-
convertible.data["render_with_liquid"] = false
|
63
61
|
return true
|
64
62
|
end
|
65
63
|
end
|
@@ -73,3 +71,13 @@ module Bridgetown
|
|
73
71
|
end
|
74
72
|
end
|
75
73
|
end
|
74
|
+
|
75
|
+
Bridgetown::Hooks.register :site, :pre_render do |site|
|
76
|
+
# make sure Liquid doesn't find {% %} and decide to process Serbea code!
|
77
|
+
site.contents.each do |convertible|
|
78
|
+
convertible.data.render_with_liquid = false if convertible.extname == ".serb"
|
79
|
+
end
|
80
|
+
site.layouts.values.each do |convertible|
|
81
|
+
convertible.data.render_with_liquid = false if convertible.ext == ".serb"
|
82
|
+
end
|
83
|
+
end
|
data/lib/version.rb
CHANGED