Sha256: 6839de7de4a7ccb8e7d3963cca08db2feae44a1ef3d2b451b7837bdc92a60d4b
Contents?: true
Size: 985 Bytes
Versions: 6
Compression:
Stored size: 985 Bytes
Contents
--- partial: foo.html --- {% assign some_bool = true %} ## Testing a simple include Testing Include → {% include foo.html %} ## Include from var Testing Include → {% include page.partial %} ## 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 %} ## Ternary include Testing Include → {% include (false ? bar.html : foo.html ) %} Testing Include → {% include (some_bool ? foo.html : theme:greet.html) %}
Version data entries
6 entries across 6 versions & 1 rubygems