From 0799d2380d90533a847cd37f7d061d0eac5fc3f9 Mon Sep 17 00:00:00 2001 From: Juha Ylitalo Date: Sun, 20 Jul 2014 21:08:06 +0300 Subject: [PATCH] sort pages in sidebar into logical order (alphabetically by url) --- _includes/sidebar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 9999da7d74886..dcf641f36f649 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -16,7 +16,7 @@ `layout: page` in the front-matter. See readme for usage. {% endcomment %} - {% assign pages_list = site.pages %} + {% assign pages_list = site.pages | sort:"url" %} {% for node in pages_list %} {% if node.title != null %} {% if node.layout == "page" %}