Created
April 20, 2013 10:42
-
-
Save galaakk/5425562 to your computer and use it in GitHub Desktop.
OCTOPRESS: create categories page index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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