From efa32d4192b8d244cab5341dbae9192000bc520d Mon Sep 17 00:00:00 2001
From: tekkub <tekkub@gmail.com>
Date: Wed, 17 Jun 2009 17:59:24 -0600
Subject: {% cycle %} is neat

---
 index.textile | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

(limited to 'index.textile')

diff --git a/index.textile b/index.textile
index 5b61ffb..5c98a03 100644
--- a/index.textile
+++ b/index.textile
@@ -35,13 +35,7 @@ p. This site is a work in progress.
 </div>
 
 {% for cat in site.categories %}
-  {% case forloop.index %}
-  {% when 3 or 6 or 9 or 12 or 15 or 18 or 21 %}
-    {% assign c = 'span-7 last' %}
-  {% else %}
-    {% assign c = 'span-7' %}
-  {% endcase %}
-  <div class="{{ c }}">
+  <div class="{% cycle 'span-7', 'span-7', 'span-7 last' %}">
     <h2>{{ cat[0] | capitalize }}</h2>
     {% for post in cat[1] %}
       <b><a href="{{ post.url }}">{{ post.title }}</a></b>
-- 
cgit v1.3.1

