fenton-jekyll-plugin 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f4b853e4171d8b3d91ddc1d5869484a4b921b2f94fb033f8dc63e905640eca9
4
- data.tar.gz: 930e9fa298147f660e62934906fe6acf660f0bd62862683879e8c83f03f09486
3
+ metadata.gz: 740a2d905abd634e6890dcbca84ae8b8707e43e1c108b11ef474b589e0ef36d8
4
+ data.tar.gz: ab06bbef49d684d8711e329c81180a6850803f30dcc0d96bdf9352cdcdec560f
5
5
  SHA512:
6
- metadata.gz: 254302629175dde64e5a3b9afd8452805431d12c86d16de81629cbae3c47db9a4582dd27dc38dbda8396ad376f191093a302670a79f9e4ec65d573d5af119d69
7
- data.tar.gz: a186d72b5dc5e332486741bf0e59a3b6a6b895a37f99e2a0d37c899b60f85740d9657e437cf462747f1150756270fff47d6e39041f6c54f88b4a272844be35a0
6
+ metadata.gz: a56e94cd2cf398816706a13f9b1160c8e3a55f61755afc4839efbd8f80ab08a6315ee3da47f1f4f18cc44d61df5ed5a648e9ccd8b629242fad1b8acb55bc50cf
7
+ data.tar.gz: dee442f6ccccf2570f68ba985e68ccf8f67c070b25fc520cbe8e5a84612ab3c8f069667212323adda98f9a680e3d98a57d023aa5bcd7975330160633f35ef4d4
@@ -0,0 +1,16 @@
1
+ require 'liquid'
2
+
3
+ module Jekyll
4
+ module IfNIl
5
+ def isnil(val, default)
6
+ if val == nil
7
+ return default
8
+ else
9
+ return val
10
+ end
11
+ end
12
+
13
+ end
14
+ end
15
+
16
+ Liquid::Template.register_filter(Jekyll::IfNIl)
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Fenton
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.8'
4
4
  end
5
5
  end
@@ -3,6 +3,7 @@ require "fenton-jekyll-plugin/jb_jekyll_markdown"
3
3
  require "fenton-jekyll-plugin/jb_jekyll_paging"
4
4
  require "fenton-jekyll-plugin/jb_liquid_language"
5
5
  require "fenton-jekyll-plugin/jb_liquid_regex"
6
+ require "fenton-jekyll-plugin/jb_liquid_ifnil"
6
7
 
7
8
  module Jekyll
8
9
  module Fenton
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fenton-jekyll-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Fenton
@@ -61,6 +61,7 @@ files:
61
61
  - lib/fenton-jekyll-plugin/jb_jekyll_breadcrumbs.rb
62
62
  - lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
63
63
  - lib/fenton-jekyll-plugin/jb_jekyll_paging.rb
64
+ - lib/fenton-jekyll-plugin/jb_liquid_ifnil.rb
64
65
  - lib/fenton-jekyll-plugin/jb_liquid_language.rb
65
66
  - lib/fenton-jekyll-plugin/jb_liquid_regex.rb
66
67
  - lib/fenton-jekyll-plugin/version.rb