From 5e41181f25c084bad214ca91a1a85e69c5b85a7e Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Thu, 7 Apr 2016 16:08:58 -0700 Subject: [PATCH] replace /licenses listings with spectrum (on home page, non-hidden) -> (agplv3 to unlicense) no explanation or cruft removal done yet --- _includes/license-overview.html | 4 ++++ licenses.html | 21 +++++++-------------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/_includes/license-overview.html b/_includes/license-overview.html index d504c20..38a853f 100644 --- a/_includes/license-overview.html +++ b/_includes/license-overview.html @@ -1,3 +1,6 @@ +{% assign id = "/licenses/" | append: include.license-id %} +{% assign licenses = site.licenses | where:"id", id %} +{% for license in licenses %}

@@ -75,3 +78,4 @@ {% endfor %}

+{% endfor %} diff --git a/licenses.html b/licenses.html index e1811ba..6b4b6ea 100644 --- a/licenses.html +++ b/licenses.html @@ -7,17 +7,10 @@ title: Licenses

Featured licenses

-{% assign featured_licenses = site.licenses | where:"featured",true %} -{% for license in featured_licenses | sort: 'path' %} - {% include license-overview.html license=license %} -{% endfor %} - -

Other licenses

-

- Some communities tend to have specific licenses preferred by the - community. For example, Perl developers often choose the Artistic License. -

-{% assign licenses = site.licenses | where:"featured",false | where:"hidden",false | where:"variant",false %} -{% for license in licenses %} - {% include license-overview.html license=license %} -{% endfor %} +{% include license-overview.html license-id="agpl-3.0" %} +{% include license-overview.html license-id="gpl-3.0" %} +{% include license-overview.html license-id="lgpl-3.0" %} +{% include license-overview.html license-id="mpl-2.0" %} +{% include license-overview.html license-id="apache-2.0" %} +{% include license-overview.html license-id="mit" %} +{% include license-overview.html license-id="unlicense" %}