1
0
mirror of https://github.com/github/choosealicense.com synced 2025-01-21 19:07:55 +01:00

attempt to sort licenses in list

This commit is contained in:
Aidan Feldman 2013-12-18 02:48:49 -05:00
parent 2aa75c3130
commit 67e88a39e3

View File

@ -7,7 +7,9 @@ title: Licenses
<h2>Featured Licenses</h2> <h2>Featured Licenses</h2>
{% for page in site.pages %} {% assign sorted_pages = site.pages | sort: 'path' %}
{% for page in sorted_pages %}
{% if page.layout == "license" %} {% if page.layout == "license" %}
{% if page.featured %} {% if page.featured %}
{% include license-overview.html %} {% include license-overview.html %}
@ -21,7 +23,7 @@ title: Licenses
community. For example, Perl developers often choose the Artistic License. community. For example, Perl developers often choose the Artistic License.
</p> </p>
{% for page in site.pages %} {% for page in sorted_pages %}
{% if page.layout == "license" %} {% if page.layout == "license" %}
{% if page.featured != true and page.hide-from-license-list != true %} {% if page.featured != true and page.hide-from-license-list != true %}
{% include license-overview.html %} {% include license-overview.html %}