Sha256: 40f34fd3db401fe1723391bfafe58e742c2fe54536bebc4ffb4ccee0fb60bfb2
Contents?: true
Size: 1.34 KB
Versions: 31
Compression:
Stored size: 1.34 KB
Contents
--- layout: nil --- {% assign some_bool = true %} ## Testing a simple include Testing Include → {% include foo.html %} ## Local var passing Testing Include var_test → {% include foo.html some_var="var_test" %} ## Filter testing TESTING INCLUDE → {% include foo.html | upcase %} '' → '{% include foo.html | upcase unless true %}' ## Conditional Include '' → '{% include foo.html unless true %}' '' → '{% include foo.html unless some_bool %}' '' → '{% include foo.html unless site.name == 'Your New Jekyll Site' %}' Testing Include → {% include foo.html if true %} Testing Include → {% include foo.html if site.name == 'Your New Jekyll Site' %} Testing Include var_test → {% include foo.html some_var="var_test" if some_bool %} ## Plugin wraps include from plugin → {% include awesome-sauce:some-include.html %} Yo Dawg, I heard you like includes. → {% include theme:greet.html greeting="Yo Dawg" %} '' → '{% include theme:greet.html greeting="Yo Dawg" unless some_bool %}' Yo Dawg, I heard you like includes. → {% include theme:greet.html greeting="Yo Dawg" if some_bool %} ## Ternary include , I heard you like includes. → {% include (false ? foo.html : theme:greet.html) %} Testing Include → {% include (some_bool ? foo.html : theme:greet.html) %} ## Theme Include override include from theme override → {% include theme:bar.html %}
Version data entries
31 entries across 31 versions & 1 rubygems