I use the boolean operator in Jekyll, but it does not work.
Page one, two and three all use the same layout (part of a multilingual solution, works well, but logical outlines are required to control the layout).
Here is the code:
{% if page.type == "post" %} {% include post.html %} {% elseif page.class == "contact" %} {% include contact.html %} {% else %} {{ content }} {% endif %}
If I break it before installing else and if else , with any two from the tree, everything will work. But as soon as I use the third condition, it breaks. Am I limited to two conventions with Jekyll? I can potentially restructure to make the case applicable, but I would rather understand the underlying problem here. Thanks to everyone.
ruby ruby-on-rails jekyll
motleydev Sep 14 '12 at 11:31 2012-09-14 11:31
source share