From 1cdef691cb199c40c7cf24fe2f77fe88d26acce7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 14 Apr 2022 19:56:47 +0300 Subject: categories: sort categories in archive --- _includes/jekyll-theme/categories/all.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 %}

Sorry, no posts have been added yet.

{% else %} - {% for category in site.categories %} + {% assign categories = site.categories | sort %} + {% for category in categories %}

{{ category[0] }}