Skip to content

Commit

Permalink
Merge pull request #164 from github/sort-licenses
Browse files Browse the repository at this point in the history
Attempt to sort licenses in list
  • Loading branch information
afeld committed Dec 18, 2013
2 parents 2aa75c3 + 67e88a3 commit 4ac4a1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions licenses.html
Expand Up @@ -7,7 +7,9 @@

<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.featured %}
{% include license-overview.html %}
Expand All @@ -21,7 +23,7 @@ <h2>Other licenses</h2>
community. For example, Perl developers often choose the Artistic License.
</p>

{% 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 %}
Expand Down

0 comments on commit 4ac4a1e

Please sign in to comment.