diff options
| author | tekkub <tekkub@gmail.com> | 2009-06-17 18:16:53 -0600 |
|---|---|---|
| committer | tekkub <tekkub@gmail.com> | 2009-06-17 18:16:53 -0600 |
| commit | 6d276ea68c3116e5e84b859e52eb7744b52f02c5 (patch) | |
| tree | a407df68fe2f488da2fdf7ef68335951602c44d9 | |
| parent | efa32d4192b8d244cab5341dbae9192000bc520d (diff) | |
Lets give the index *another* try
| -rw-r--r-- | index.textile | 18 |
1 files changed, 13 insertions, 5 deletions
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 %} + |
