mojombo/jekyll — Issue #435: Liquid exceptions. 
Author: polymetis
Created: 2011-11-14 21:51:40+00:00
State: open

No matter what I seem to do I keep getting this.

Liquid Exception: Unknown tag 'when' in index.html

several times every time I build my blog.

I did try downgrading to 2.2.2 and nothing is really happening there.

My index.html page looks like this

```html
---
layout: default
---

{% for post in paginator.posts %}
{% case post.layout %}
{% when 'link' %}

{{ post.title }}

{{ post.date | date: "%A" }},
{{ post.date | date: "%B" }}
{{ post.date | date: "%b" }}
{{ post.date | date: "%d" }}
{{ post.date | date: "%Y" }}

∞

{{ post.title }}

{{ post.lead }}

{% when 'youtube' %}

{{ post.title }}

{{ post.date | date: "%A" }},
{{ post.date | date: "%B" }}
{{ post.date | date: "%b" }}
{{ post.date | date: "%d" }},
{{ post.date | date: "%Y" }}

∞

{{ post.lead }}

{% when 'vimeo' %}

{{ post.title }}

{{ post.date | date: "%A" }},
{{ post.date | date: "%B" }}
{{ post.date | date: "%b" }}
{{ post.date | date: "%d" }}
{{ post.date | date: "%Y" }}

∞

{{ post.lead }}

{% when 'feature' %}

{{ post.title }}

{{ post.date | date: "%A" }},
{{ post.date | date: "%B" }}
{{ post.date | date: "%b" }}
{{ post.date | date: "%d" }}
{{ post.date | date: "%Y" }}

∞

{{ post.lead }}

{% else %}

{ post.title }}

{{ post.date | date: "%A" }},
{{ post.date | date: "%B" }}
{{ post.date | date: "%b" }}
{{ post.date | date: "%d" }}
{{ post.date | date: "%Y" }}

∞

{{ post.lead }}

{% endcase %}
{% endfor %}

```