January 26, 2016

Code Snippet: List Categories Alphabetically in Jekyll

{% assign sorted_categories= (site.categories | sort:0) %}
<ul>
{% for category in sorted_categories %}
<li><a href="">{{ category | first }}</a></li>
{% endfor %}
</ul>
categories: code-snippets, jekyll