From 67e88a39e3ea08fa45e2f4ef3afe6fea973ec251 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Wed, 18 Dec 2013 02:48:49 -0500 Subject: [PATCH] attempt to sort licenses in list --- licenses.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/licenses.html b/licenses.html index c42e788..0445a54 100644 --- a/licenses.html +++ b/licenses.html @@ -7,7 +7,9 @@ title: Licenses

Featured Licenses

-{% for page in site.pages %} +{% assign sorted_pages = site.pages | sort: 'path' %} + +{% for page in sorted_pages %} {% if page.layout == "license" %} {% if page.featured %} {% include license-overview.html %} @@ -21,7 +23,7 @@ title: Licenses community. For example, Perl developers often choose the Artistic License.

-{% for page in site.pages %} +{% for page in sorted_pages %} {% if page.layout == "license" %} {% if page.featured != true and page.hide-from-license-list != true %} {% include license-overview.html %}