From 6f36d6bfcb9e688cf1d966ded8bc3e8c99d05bbe Mon Sep 17 00:00:00 2001 From: Haacked Date: Mon, 18 Nov 2013 17:00:15 -0800 Subject: [PATCH] Hide pill nav for a single license --- _includes/license-overview.html | 6 ++++-- licenses/agpl.txt | 2 +- licenses/apache.txt | 1 - licenses/artistic.txt | 1 - licenses/bsd-3-clause.txt | 2 +- licenses/bsd.txt | 2 +- licenses/cc0.txt | 2 +- licenses/eclipse.txt | 1 - licenses/gpl-v2.txt | 2 +- licenses/gpl-v3.txt | 2 +- licenses/lgpl-v2.1.txt | 2 +- licenses/lgpl-v3.txt | 2 +- licenses/mit.txt | 1 - licenses/mozilla.txt | 1 - licenses/no-license.html | 1 - licenses/unlicense.txt | 2 +- 16 files changed, 13 insertions(+), 17 deletions(-) diff --git a/_includes/license-overview.html b/_includes/license-overview.html index 1622174..80b9f51 100644 --- a/_includes/license-overview.html +++ b/_includes/license-overview.html @@ -8,17 +8,19 @@
+ {% if page.tab-slug %} + {% endif %}
{% for variation in site.pages %} {% if variation.category and variation.category == page.category %} -
+
{% assign types = "required|permitted|forbidden" | split: "|" %} diff --git a/licenses/agpl.txt b/licenses/agpl.txt index afc9406..328317d 100644 --- a/licenses/agpl.txt +++ b/licenses/agpl.txt @@ -1,7 +1,7 @@ --- title: Affero GPL category: GPL -slug: agpl +tab-slug: agpl hide-from-license-list: true layout: license permalink: /licenses/agpl/ diff --git a/licenses/apache.txt b/licenses/apache.txt index a2c2d71..fd4bd0a 100644 --- a/licenses/apache.txt +++ b/licenses/apache.txt @@ -1,7 +1,6 @@ --- title: Apache v2 License category: Apache -slug: apache layout: license permalink: /licenses/apache/ diff --git a/licenses/artistic.txt b/licenses/artistic.txt index e6fd215..b3dede4 100644 --- a/licenses/artistic.txt +++ b/licenses/artistic.txt @@ -2,7 +2,6 @@ layout: license title: Artistic License 2.0 category: Artistic -slug: artistic permalink: /licenses/artistic/ source: http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt diff --git a/licenses/bsd-3-clause.txt b/licenses/bsd-3-clause.txt index 5fb4c75..61f4964 100644 --- a/licenses/bsd-3-clause.txt +++ b/licenses/bsd-3-clause.txt @@ -2,7 +2,7 @@ layout: license title: BSD (3-Clause) License category: BSD -slug: bsd-3 +tab-slug: bsd-3 hide-from-license-list: true permalink: /licenses/bsd-3-clause/ diff --git a/licenses/bsd.txt b/licenses/bsd.txt index 8edbb49..c6cfe1c 100644 --- a/licenses/bsd.txt +++ b/licenses/bsd.txt @@ -2,7 +2,7 @@ layout: license title: BSD 2-Clause license category: BSD -slug: bsd +tab-slug: bsd hide-from-license-list: false permalink: /licenses/bsd/ diff --git a/licenses/cc0.txt b/licenses/cc0.txt index 68699ce..b330b37 100644 --- a/licenses/cc0.txt +++ b/licenses/cc0.txt @@ -2,7 +2,7 @@ layout: license title: CC0 1.0 Universal category: Public Domain Dedication -slug: cc0 +tab-slug: cc0 permalink: /licenses/cc0/ class: license-types hide-from-license-list: true diff --git a/licenses/eclipse.txt b/licenses/eclipse.txt index 054b235..01c4c17 100644 --- a/licenses/eclipse.txt +++ b/licenses/eclipse.txt @@ -2,7 +2,6 @@ layout: license title: Eclipse Public License v1.0 category: Eclipse -slug: eclipse permalink: /licenses/eclipse/ description: This commercially-friendly copyleft license provides the ability to commercially license binaries; a modern royalty-free patent license grant; and the ability for linked works to use other licenses, including commercial ones. diff --git a/licenses/gpl-v2.txt b/licenses/gpl-v2.txt index 3a764a8..6bee8b7 100644 --- a/licenses/gpl-v2.txt +++ b/licenses/gpl-v2.txt @@ -1,7 +1,7 @@ --- title: GPL v2 category: GPL -slug: gpl-v2 +tab-slug: gpl-v2 hide-from-license-list: false layout: license permalink: /licenses/gpl-v2/ diff --git a/licenses/gpl-v3.txt b/licenses/gpl-v3.txt index fa7db2b..510e4e9 100644 --- a/licenses/gpl-v3.txt +++ b/licenses/gpl-v3.txt @@ -1,7 +1,7 @@ --- title: GPL v3 category: GPL -slug: gpl-v3 +tab-slug: gpl-v3 hide-from-license-list: true layout: license permalink: /licenses/gpl-v3/ diff --git a/licenses/lgpl-v2.1.txt b/licenses/lgpl-v2.1.txt index 442c6fc..13c4603 100644 --- a/licenses/lgpl-v2.1.txt +++ b/licenses/lgpl-v2.1.txt @@ -2,7 +2,7 @@ layout: license title: LGPL v2.1 category: LGPL -slug: lgpl-v2.1 +tab-slug: lgpl-v2.1 permalink: /licenses/lgpl-v2.1/ source: http://www.gnu.org/licenses/lgpl-2.1.txt diff --git a/licenses/lgpl-v3.txt b/licenses/lgpl-v3.txt index 7982712..728f5f5 100644 --- a/licenses/lgpl-v3.txt +++ b/licenses/lgpl-v3.txt @@ -2,7 +2,7 @@ layout: license title: LGPL v3 category: LGPL -slug: lgpl-v3 +tab-slug: lgpl-v3 hide-from-license-list: true permalink: /licenses/lgpl-v3/ source: http://www.gnu.org/licenses/lgpl-3.0.txt diff --git a/licenses/mit.txt b/licenses/mit.txt index fff3e51..7b0e212 100644 --- a/licenses/mit.txt +++ b/licenses/mit.txt @@ -2,7 +2,6 @@ layout: license title: MIT License category: mit -slug: mit permalink: /licenses/mit/ source: http://opensource.org/licenses/MIT diff --git a/licenses/mozilla.txt b/licenses/mozilla.txt index 46990cb..5a7ee26 100644 --- a/licenses/mozilla.txt +++ b/licenses/mozilla.txt @@ -2,7 +2,6 @@ layout: license title: Mozilla Public License Version 2.0 category: Mozilla -slug: mozilla permalink: /licenses/mozilla/ source: http://www.mozilla.org/MPL/2.0/ diff --git a/licenses/no-license.html b/licenses/no-license.html index f0b24ae..8455e23 100644 --- a/licenses/no-license.html +++ b/licenses/no-license.html @@ -2,7 +2,6 @@ layout: license permalink: /licenses/no-license/ category: No License -slug: no-license class: license-types title: No License diff --git a/licenses/unlicense.txt b/licenses/unlicense.txt index d25cf8b..4af2e41 100644 --- a/licenses/unlicense.txt +++ b/licenses/unlicense.txt @@ -2,7 +2,7 @@ layout: license title: The Unlicense category: Public Domain Dedication -slug: unlicense +tab-slug: unlicense permalink: /licenses/unlicense/ class: license-types filename: UNLICENSE