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

replace /licenses listings with spectrum

(on home page, non-hidden) -> (agplv3 to unlicense)

no explanation or cruft removal done yet
This commit is contained in:
Mike Linksvayer 2016-04-07 16:08:58 -07:00
parent 01b29bfd60
commit 5e41181f25
2 changed files with 11 additions and 14 deletions

View File

@ -1,3 +1,6 @@
{% assign id = "/licenses/" | append: include.license-id %}
{% assign licenses = site.licenses | where:"id", id %}
{% for license in licenses %}
<div class="license-family clearfix"> <div class="license-family clearfix">
<div class="license-family-heading"> <div class="license-family-heading">
<h3 class="license-family-name"> <h3 class="license-family-name">
@ -75,3 +78,4 @@
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
{% endfor %}

View File

@ -7,17 +7,10 @@ title: Licenses
<h2>Featured licenses</h2> <h2>Featured licenses</h2>
{% assign featured_licenses = site.licenses | where:"featured",true %} {% include license-overview.html license-id="agpl-3.0" %}
{% for license in featured_licenses | sort: 'path' %} {% include license-overview.html license-id="gpl-3.0" %}
{% include license-overview.html license=license %} {% include license-overview.html license-id="lgpl-3.0" %}
{% endfor %} {% include license-overview.html license-id="mpl-2.0" %}
{% include license-overview.html license-id="apache-2.0" %}
<h2>Other licenses</h2> {% include license-overview.html license-id="mit" %}
<p> {% include license-overview.html license-id="unlicense" %}
Some communities tend to have specific licenses preferred by the
community. For example, Perl developers often choose the Artistic License.
</p>
{% assign licenses = site.licenses | where:"featured",false | where:"hidden",false | where:"variant",false %}
{% for license in licenses %}
{% include license-overview.html license=license %}
{% endfor %}