1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 21:00:10 +01:00

Merge pull request #164 from github/sort-licenses

Attempt to sort licenses in list
This commit is contained in:
Aidan Feldman 2013-12-18 00:42:05 -08:00
commit 4ac4a1edb4

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 %}