mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
Merge pull request #164 from github/sort-licenses
Attempt to sort licenses in list
This commit is contained in:
commit
4ac4a1edb4
@ -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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user