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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 843083ae2fadbebd662b112d2a5c1710e3724f34857b1c6a2a54245e7abc52b9
4
- data.tar.gz: 104fdeb290cfd5a94cfa26beed5aa31c55771c8cd23f7501e42af6ec27803de9
3
+ metadata.gz: 34249683bdebe93a40e03acefcd4201f315144a5c87e1a83991ef9919e982153
4
+ data.tar.gz: e83e7b8e9dbefe2791f5f9d4301a000d5e53ddef6f4ce9cb281a4a089bbeadd2
5
5
  SHA512:
6
- metadata.gz: 8cfc623c9246ca644fdd64b5cfe306a66918ae250c066b7500d34e53b9ef2b2b61504cc1707831b40eb44fd3a27ab24dd3556bc9a5cb943ae4725a5269c4670a
7
- data.tar.gz: 9fc958b5e73f32d6094d9ef811934deb7a0994b74159a7ed3b86ac73137064a2dd727015d7211051dc51901c9c9e444eaa1ea4afbee64fe9e1b526bd43d62da5
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
@@ -1,3 +1,3 @@
1
1
  module Serbea
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serbea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team