diff options
| author | tekkub <tekkub@gmail.com> | 2009-06-17 02:39:07 -0600 |
|---|---|---|
| committer | tekkub <tekkub@gmail.com> | 2009-06-17 02:39:07 -0600 |
| commit | 778ecbe667f4e437e8f290dcba4e5b37f8a69dd3 (patch) | |
| tree | 57d1ec5f0b7e0806990a4bfeaa76408960b8d99b | |
| parent | c99153dcec14f121ad7edb27655d3fee699ccefd (diff) | |
Dynamically build the category/post lists
| -rw-r--r-- | index.textile | 45 |
1 files changed, 13 insertions, 32 deletions
diff --git a/index.textile b/index.textile index da5d86a..5dec62c 100644 --- a/index.textile +++ b/index.textile @@ -35,37 +35,18 @@ title: Welcome to the GitHub Help site <hr/> </div> -<div class="span-5"> - <h2>Windows</h2> - {% for post in site.categories.windows %} - <div class='episode'> +{% 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 }}"> + <h2>{{ cat[0] | capitalize }}</h2> + {% for post in cat[1] %} <b><a href="{{ post.url }}">{{ post.title }}</a></b> - {% if post.description %} - <p>{{ post.description }}</p> - {% endif %} - </div> - {% endfor %} -</div> - -<div class="span-5"> - <h2>Mac OSX</h2> - <div class='episode'><b>Distributed Git</b> - <p>Fetch, merge, pull and push between multiple remote repositories.</p> - </div> -</div> - -<div class="span-5"> - <h2>Linux</h2> - <div class='episode'> - <b>Filter Branch</b> - <p>Modify large sections of your commit history at once, changing emails, names or files globally.</p> + <p>{{ post.description }}</p> + {% endfor %} </div> -</div> - -<div class="span-6 last"> - <h2>Special Interest</h2> - <div class='episode'> - <b>Git and Windows - General</b> - <p>Install and use Git on a Windows environment using the default mSysGit tools.</p> - </div> -</div> +{% endfor %} |
