From 9dbb60c5c6ccea5edb2c8cb382a30f87018f33e8 Mon Sep 17 00:00:00 2001 From: James Dennes Date: Sun, 14 Jul 2013 15:32:06 +0200 Subject: [PATCH] Use Absolute Permalinks This removes the deprecation warning about absolute permalinks. Absolute Permalinks will be the default as of Jekyll v1.1: http://jekyllrb.com/docs/upgrading/ --- README.md | 2 +- _config.yml | 2 +- licenses/agpl.txt | 2 +- licenses/apache.txt | 2 +- licenses/artistic.txt | 2 +- licenses/bsd-3-clause.txt | 2 +- licenses/bsd.txt | 2 +- licenses/eclipse.txt | 2 +- licenses/gpl-v2.txt | 2 +- licenses/gpl-v3.txt | 2 +- licenses/lgpl-v2.1.txt | 2 +- licenses/lgpl-v3.txt | 2 +- licenses/mit.txt | 2 +- licenses/mozilla.txt | 2 +- licenses/no-license.html | 2 +- licenses/public-domain.txt | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 3fdfd85..8a62e0a 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Licenses sit in the `/licenses` folder as markdown (`.md`) files. Each license h * `title` - The name of the license * `layout` - This should be `license` -* `permalink` - The url to the license relative to `/licenses/` +* `permalink` - The absolute URL to the license, beginning with `/licenses/` * `source` - URL to the license source text * `note` - The note field in the sidebar (optional) * `how` - How to use the license, also in the sidebar diff --git a/_config.yml b/_config.yml index 3f14b70..1a23ad9 100644 --- a/_config.yml +++ b/_config.yml @@ -1,5 +1,5 @@ title: ChooseALicense.com - +relative_permalinks: false rules: required: diff --git a/licenses/agpl.txt b/licenses/agpl.txt index 68f5270..b7bc71d 100644 --- a/licenses/agpl.txt +++ b/licenses/agpl.txt @@ -1,7 +1,7 @@ --- title: Affero GPL layout: license -permalink: agpl/ +permalink: /licenses/agpl/ source: http://www.gnu.org/licenses/gpl-3.0-standalone.html note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license. diff --git a/licenses/apache.txt b/licenses/apache.txt index 4781065..c0ee3a3 100644 --- a/licenses/apache.txt +++ b/licenses/apache.txt @@ -1,7 +1,7 @@ --- title: Apache v2 License layout: license -permalink: apache/ +permalink: /licenses/apache/ featured: true diff --git a/licenses/artistic.txt b/licenses/artistic.txt index 12bd331..d91ecec 100644 --- a/licenses/artistic.txt +++ b/licenses/artistic.txt @@ -1,7 +1,7 @@ --- layout: license title: Artistic License 2.0 -permalink: artistic/ +permalink: /licenses/artistic/ source: http://opensource.org/licenses/Artistic-2.0 diff --git a/licenses/bsd-3-clause.txt b/licenses/bsd-3-clause.txt index f6ada79..5ff1267 100644 --- a/licenses/bsd-3-clause.txt +++ b/licenses/bsd-3-clause.txt @@ -1,7 +1,7 @@ --- layout: license title: BSD (3-Clause) License -permalink: bsd-3-clause/ +permalink: /licenses/bsd-3-clause/ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace <> with the current year and <> with the name (or names) of the copyright holders. Replace {organization} with the organization, if any, that sponsors this work. diff --git a/licenses/bsd.txt b/licenses/bsd.txt index fcff097..3e85c90 100644 --- a/licenses/bsd.txt +++ b/licenses/bsd.txt @@ -1,7 +1,7 @@ --- layout: license title: BSD 2-Clause license -permalink: bsd/ +permalink: /licenses/bsd/ description: A permissive license that comes in two variants, the BSD 2-Clause and BSD 3-Clause. Both have very minute differences to the MIT license. diff --git a/licenses/eclipse.txt b/licenses/eclipse.txt index 0a5ea74..30bbfca 100644 --- a/licenses/eclipse.txt +++ b/licenses/eclipse.txt @@ -1,7 +1,7 @@ --- layout: license title: Eclipse Public License v1.0 -permalink: eclipse/ +permalink: /licenses/eclipse/ description: Used by the Eclipse foundation for its software, this license includes reciprocal requirements in some cases. diff --git a/licenses/gpl-v2.txt b/licenses/gpl-v2.txt index 18b0b95..3bc8d69 100644 --- a/licenses/gpl-v2.txt +++ b/licenses/gpl-v2.txt @@ -1,7 +1,7 @@ --- title: GPL v2 layout: license -permalink: gpl-v2/ +permalink: /licenses/gpl-v2/ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. diff --git a/licenses/gpl-v3.txt b/licenses/gpl-v3.txt index 47e6212..1c5cbfa 100644 --- a/licenses/gpl-v3.txt +++ b/licenses/gpl-v3.txt @@ -1,7 +1,7 @@ --- title: GPL v3 layout: license -permalink: gpl-v3/ +permalink: /licenses/gpl-v3/ featured: true diff --git a/licenses/lgpl-v2.1.txt b/licenses/lgpl-v2.1.txt index 1de27ed..bb5d42a 100644 --- a/licenses/lgpl-v2.1.txt +++ b/licenses/lgpl-v2.1.txt @@ -1,7 +1,7 @@ --- layout: license title: LGPL v2.1 -permalink: lgpl-v2.1/ +permalink: /licenses/lgpl-v2.1/ 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 92683b0..afab013 100644 --- a/licenses/lgpl-v3.txt +++ b/licenses/lgpl-v3.txt @@ -1,7 +1,7 @@ --- layout: license title: LGPL v3 -permalink: lgpl-v3/ +permalink: /licenses/lgpl-v3/ 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 5a46e46..ce92b70 100644 --- a/licenses/mit.txt +++ b/licenses/mit.txt @@ -1,7 +1,7 @@ --- layout: license title: MIT License -permalink: mit/ +permalink: /licenses/mit/ featured: true diff --git a/licenses/mozilla.txt b/licenses/mozilla.txt index c18e566..eb86f2f 100644 --- a/licenses/mozilla.txt +++ b/licenses/mozilla.txt @@ -1,7 +1,7 @@ --- layout: license title: Mozilla Public License Version 2.0 -permalink: mozilla/ +permalink: /licenses/mozilla/ 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/no-license.html b/licenses/no-license.html index 5a4c9a2..5d3f913 100644 --- a/licenses/no-license.html +++ b/licenses/no-license.html @@ -1,6 +1,6 @@ --- layout: license -permalink: no-license/ +permalink: /no-license/ class: license-types title: No License diff --git a/licenses/public-domain.txt b/licenses/public-domain.txt index c1bcefb..e7896ad 100644 --- a/licenses/public-domain.txt +++ b/licenses/public-domain.txt @@ -1,6 +1,6 @@ --- layout: license -permalink: public-domain/ +permalink: /licenses/public-domain/ class: license-types title: Public Domain (CC0)