diff options
Diffstat (limited to '')
-rw-r--r-- | _includes/jekyll-theme/categories/all.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/_includes/jekyll-theme/categories/all.html b/_includes/jekyll-theme/categories/all.html index 71b4bb6..82efce5 100644 --- a/_includes/jekyll-theme/categories/all.html +++ b/_includes/jekyll-theme/categories/all.html @@ -1,7 +1,8 @@ {% if site.posts.size == 0 %} <p>Sorry, no posts have been added yet.</p> {% else %} - {% for category in site.categories %} + {% assign categories = site.categories | sort %} + {% for category in categories %} <h2><a class="category" href="{{ '/' | relative_url }}{{ category[0] | slugify: 'pretty' }}/">{{ category[0] }}</a></h2> <ul> {% for post in category[1] %} |