Skip to content

Instantly share code, notes, and snippets.

@galaakk
Created April 20, 2013 10:42
OCTOPRESS: create categories page index.html
---
layout: default
title: Blog Categories
---
{% for item in site.categories %}
<div class="category-block">
<h2 class="category-title-{{ item[0] | downcase }}"><a href="{{ root_url }}/categories/{{ item[0] | downcase | replace:' ','-' | replace:'é','e'}}/">{{ item[0] | capitalize }}</a></h2>
</div>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment