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

implement hidden licenses

This commit is contained in:
Ben Balter 2015-08-06 11:56:18 -04:00
parent c5a6c07d6f
commit 4ba1ca5dac
9 changed files with 10 additions and 9 deletions

View File

@ -17,7 +17,8 @@ defaults:
values: values:
layout: license layout: license
featured: false featured: false
"hide-from-license-list": false hidden: false
variant: false
exclude: exclude:
- app.coffee - app.coffee

View File

@ -3,7 +3,7 @@ title: GNU Affero General Public License v3.0
nickname: GNU Affero GPL v3.0 nickname: GNU Affero GPL v3.0
category: GPL category: GPL
tab-slug: agpl-v3 tab-slug: agpl-v3
hide-from-license-list: true variant: true
layout: license layout: license
permalink: /licenses/agpl-3.0/ permalink: /licenses/agpl-3.0/
source: http://www.gnu.org/licenses/agpl-3.0.txt source: http://www.gnu.org/licenses/agpl-3.0.txt

View File

@ -4,7 +4,7 @@ title: BSD 2-clause "Simplified" License
nickname: Simplified BSD nickname: Simplified BSD
category: BSD category: BSD
tab-slug: bsd tab-slug: bsd
hide-from-license-list: true variant: true
redirect_from: /licenses/bsd/ redirect_from: /licenses/bsd/
permalink: /licenses/bsd-2-clause/ permalink: /licenses/bsd-2-clause/

View File

@ -4,7 +4,7 @@ title: BSD 3-clause "New" or "Revised" License
nickname: New BSD nickname: New BSD
category: BSD category: BSD
tab-slug: bsd-3 tab-slug: bsd-3
hide-from-license-list: true variant: true
permalink: /licenses/bsd-3-clause/ permalink: /licenses/bsd-3-clause/
description: A permissive license that comes in two variants, the <a href="/licenses/bsd">BSD 2-Clause</a> and <a href="/licenses/bsd-3-clause">BSD 3-Clause</a>. Both have very minute differences to the MIT license. The three clause variant prohibits others from using the name of the project or its contributors to promote derivative works without written consent. description: A permissive license that comes in two variants, the <a href="/licenses/bsd">BSD 2-Clause</a> and <a href="/licenses/bsd-3-clause">BSD 3-Clause</a>. Both have very minute differences to the MIT license. The three clause variant prohibits others from using the name of the project or its contributors to promote derivative works without written consent.

View File

@ -6,7 +6,7 @@ category: Public Domain Dedication
tab-slug: cc0 tab-slug: cc0
permalink: /licenses/cc0/ permalink: /licenses/cc0/
class: license-types class: license-types
hide-from-license-list: true variant: true
filename: LICENSE filename: LICENSE
source: http://creativecommons.org/publicdomain/zero/1.0/ source: http://creativecommons.org/publicdomain/zero/1.0/

View File

@ -3,7 +3,7 @@ title: GNU General Public License v2.0
nickname: GNU GPL v2.0 nickname: GNU GPL v2.0
category: GPL category: GPL
tab-slug: gpl-v2 tab-slug: gpl-v2
hide-from-license-list: false variant: false
layout: license layout: license
permalink: /licenses/gpl-2.0/ permalink: /licenses/gpl-2.0/
redirect_from: /licenses/gpl-v2/ redirect_from: /licenses/gpl-v2/

View File

@ -3,7 +3,7 @@ title: GNU General Public License v3.0
nickname: GNU GPL v3.0 nickname: GNU GPL v3.0
category: GPL category: GPL
tab-slug: gpl-v3 tab-slug: gpl-v3
hide-from-license-list: true variant: true
layout: license layout: license
permalink: /licenses/gpl-3.0/ permalink: /licenses/gpl-3.0/
redirect_from: /licenses/gpl-v3/ redirect_from: /licenses/gpl-v3/

View File

@ -4,7 +4,7 @@ title: GNU Lesser General Public License v3.0
nickname: GNU LGPL v3.0 nickname: GNU LGPL v3.0
category: LGPL category: LGPL
tab-slug: lgpl-v3 tab-slug: lgpl-v3
hide-from-license-list: true variant: true
redirect_from: /licenses/lgpl-v3/ redirect_from: /licenses/lgpl-v3/
source: http://www.gnu.org/licenses/lgpl-3.0.txt source: http://www.gnu.org/licenses/lgpl-3.0.txt
permalink: /licenses/lgpl-3.0/ permalink: /licenses/lgpl-3.0/

View File

@ -17,7 +17,7 @@ title: Licenses
Some communities tend to have specific licenses preferred by the Some communities tend to have specific licenses preferred by the
community. For example, Perl developers often choose the Artistic License. community. For example, Perl developers often choose the Artistic License.
</p> </p>
{% assign licenses = site.licenses | where:"featured",false | where:"hide-from-license-list",false %} {% assign licenses = site.licenses | where:"featured",false | where:"hidden",false | where:"variant",false %}
{% for license in licenses %} {% for license in licenses %}
{% include license-overview.html %} {% include license-overview.html %}
{% endfor %} {% endfor %}