From 800d8bbdb87301cb5f4e3426ff717646649a927d Mon Sep 17 00:00:00 2001 From: "Andreas Renberg (IQAndreas)" Date: Wed, 23 Oct 2013 07:37:32 +0200 Subject: [PATCH 1/2] Only include link to source if one has been provided Not all licenses have provided a `source` property, so this check just prevent an empty `href` in such cases. --- _includes/sidebar.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 854a9f2..396c37e 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -12,9 +12,11 @@

{% endif %} + {% if page.source %}
- Source + Source
+ {% endif %}
From dc58abef620554ab98969b3177f4eaa98d1056a4 Mon Sep 17 00:00:00 2001 From: "Andreas Renberg (IQAndreas)" Date: Wed, 23 Oct 2013 08:09:55 +0200 Subject: [PATCH 2/2] Add license sources where missing --- licenses/gpl-v2.txt | 1 + licenses/gpl-v3.txt | 1 + licenses/lgpl-v2.1.txt | 1 + licenses/lgpl-v3.txt | 1 + licenses/mit.txt | 1 + licenses/mozilla.txt | 1 + licenses/public-domain.txt | 2 ++ 7 files changed, 8 insertions(+) diff --git a/licenses/gpl-v2.txt b/licenses/gpl-v2.txt index 751c221..019e09e 100644 --- a/licenses/gpl-v2.txt +++ b/licenses/gpl-v2.txt @@ -2,6 +2,7 @@ title: GPL v2 layout: license permalink: /licenses/gpl-v2/ +source: http://www.gnu.org/licenses/gpl-2.0.txt featured: true diff --git a/licenses/gpl-v3.txt b/licenses/gpl-v3.txt index c3c105b..487377f 100644 --- a/licenses/gpl-v3.txt +++ b/licenses/gpl-v3.txt @@ -2,6 +2,7 @@ title: GPL v3 layout: license permalink: /licenses/gpl-v3/ +source: http://www.gnu.org/licenses/gpl-3.0.txt description: GPL is the most widely used free software license and has a strong copyleft requirement. When distributing derived works, the source code of the work must be made available under the same license. diff --git a/licenses/lgpl-v2.1.txt b/licenses/lgpl-v2.1.txt index eacacde..b0976cb 100644 --- a/licenses/lgpl-v2.1.txt +++ b/licenses/lgpl-v2.1.txt @@ -2,6 +2,7 @@ layout: license title: LGPL v2.1 permalink: /licenses/lgpl-v2.1/ +source: http://www.gnu.org/licenses/lgpl-2.1.txt description: Primarily used for software libraries, LGPL requires that derived works be licensed under the same license, but works that only link to it do not fall under this restriction. diff --git a/licenses/lgpl-v3.txt b/licenses/lgpl-v3.txt index afab013..f486e4b 100644 --- a/licenses/lgpl-v3.txt +++ b/licenses/lgpl-v3.txt @@ -2,6 +2,7 @@ layout: license title: LGPL v3 permalink: /licenses/lgpl-v3/ +source: http://www.gnu.org/licenses/lgpl-3.0.txt description: Version 3 of the LGPL is an additional set of permissions to the GPL v3 license that requires that derived works be licensed under the same license, but works that only link to it do not fall under this restriction. diff --git a/licenses/mit.txt b/licenses/mit.txt index 006d0b9..e9ae8d6 100644 --- a/licenses/mit.txt +++ b/licenses/mit.txt @@ -2,6 +2,7 @@ layout: license title: MIT License permalink: /licenses/mit/ +source: http://opensource.org/licenses/MIT featured: true diff --git a/licenses/mozilla.txt b/licenses/mozilla.txt index eb86f2f..37ec20d 100644 --- a/licenses/mozilla.txt +++ b/licenses/mozilla.txt @@ -2,6 +2,7 @@ layout: license title: Mozilla Public License Version 2.0 permalink: /licenses/mozilla/ +source: http://www.mozilla.org/MPL/2.0/ description: The Mozilla Public License (MPL 2.0) is maintained by the Mozilla foundation. This license attempts to be a compromise between the permissive BSD license and the reciprocal GPL license. diff --git a/licenses/public-domain.txt b/licenses/public-domain.txt index 77ca8fb..a870459 100644 --- a/licenses/public-domain.txt +++ b/licenses/public-domain.txt @@ -5,6 +5,8 @@ class: license-types title: Public Domain (Unlicense) filename: UNLICENSE +source: http://unlicense.org/UNLICENSE + description: Because copyright is automatic in most countries, the Unlicense is a template to waive copyright interest in software you've written and dedicate it to the public domain. Use the Unlicense to opt out of copyright entirely. It also includes the no-warranty statement from the MIT/X11 license. how: Create a text file (typically named UNLICENSE or UNLICENSE.txt) in the root of your source code and copy the text of the license disclaimer into the file.