From 6d276ea68c3116e5e84b859e52eb7744b52f02c5 Mon Sep 17 00:00:00 2001
From: tekkub <tekkub@gmail.com>
Date: Wed, 17 Jun 2009 18:16:53 -0600
Subject: Lets give the index *another* try

---
 index.textile | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

(limited to 'index.textile')

diff --git a/index.textile b/index.textile
index 5c98a03..8898610 100644
--- a/index.textile
+++ b/index.textile
@@ -1,6 +1,13 @@
 ---
 layout: default
 title: Welcome to the GitHub Help site
+index_cats:
+- setup
+- mac
+- windows
+- collaborating
+last_cats:
+- windows
 ---
 
 <div class="span-21" id="welcome">
@@ -34,12 +41,13 @@ p. This site is a work in progress.
   <hr/>
 </div>
 
-{% for cat in site.categories %}
-  <div class="{% cycle 'span-7', 'span-7', 'span-7 last' %}">
-    <h2>{{ cat[0] | capitalize }}</h2>
-    {% for post in cat[1] %}
+{% for cat in (page.index_cats) %}
+  <div class="span-7 {% if page.last_cats contains cat %}last{% endif %}">
+    <h2>{{ cat | capitalize }}</h2>
+    {% for post in site.posts %}{% if post.categories contains cat %}
       <b><a href="{{ post.url }}">{{ post.title }}</a></b>
       <p>{{ post.description }}</p>
-    {% endfor %}
+    {% endif %}{% endfor %}
   </div>
 {% endfor %}
+
-- 
cgit v1.3.1

