diff options
| author | tekkub <tekkub@gmail.com> | 2009-06-17 17:59:24 -0600 |
|---|---|---|
| committer | tekkub <tekkub@gmail.com> | 2009-06-17 17:59:24 -0600 |
| commit | efa32d4192b8d244cab5341dbae9192000bc520d (patch) | |
| tree | 9381024275f0e4780888c5c923f0963d2ea4d4fd | |
| parent | c428debf97e2f5ce0aedbc562fdc731cee6b81d9 (diff) | |
{% cycle %} is neat
| -rw-r--r-- | index.textile | 8 |
1 files changed, 1 insertions, 7 deletions
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> |
