From 6b2eaebac570c98f84813453f2635b31daa41ef6 Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Mon, 30 May 2016 18:34:51 -0700 Subject: [PATCH] add '+' to spdx id if _GPL --- _includes/sidebar.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 32ee06a..865b81a 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -12,7 +12,9 @@ Note: {{ page.note | markdownify | remove: '

' | remove: '

' }}

{% endif %} -

You can also add {{ page.spdx-id }}, the standard identifier for this license, to your project's package description, if applicable. Examples: Node.js, Ruby, and Rust.

+ {% assign xgpl = false %} + {% if page.spdx-id contains 'GPL' %}{% assign xgpl = true %}{% endif %} +

You can also add {{ page.spdx-id }}{% if xgpl %}+{% endif %}{% if xgpl %} (or {{ page.spdx-id }} to disallow future versions){% endif %}, the standard identifier for this license, to your project's package description, if applicable. Examples: Node.js, Ruby, and Rust.

{% if page.source %}