Shopify/liquid — Issue #83: Conditional Includes
Author: wesbaker
Created: 2011-11-26 22:16:12+00:00
State: open

I'm playing around with Octopress (and therefore Jekyll and Liquid) and I'm trying to conditionally include something like so:

{% if post.layout == "article" %}
{% include article.html %}
{% endif %}

When I do that, the include doesn't work. I'd have to remove the conditional to have it 'work'. I also tried a simpler conditional like so:

{% if true %}
{% include article.html %}
{% endif %}

And that also didn't work. Any ideas what's going on? Here's [the full liquid template](https://gist.github.com/1396327) for context.