From 911368e4277fbc6d644d52a7664cd2a5452b4d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 26 Apr 2019 22:49:42 -0500 Subject: [PATCH] added license to video --- content/articles/happy-birthday-to-gnu.md | 1 + content/articles/locutus-de-gnu.md | 1 + content/articles/rms-en-dominio-digital.md | 3 +- content/articles/sin-parar.md | 12 +--- libretube-theme/templates/article.html | 58 +++++++++++++++- pelicanconf.py | 79 ++++++++++++++++++++++ 6 files changed, 141 insertions(+), 13 deletions(-) diff --git a/content/articles/happy-birthday-to-gnu.md b/content/articles/happy-birthday-to-gnu.md index bd281f8..9ebb514 100644 --- a/content/articles/happy-birthday-to-gnu.md +++ b/content/articles/happy-birthday-to-gnu.md @@ -2,6 +2,7 @@ Author: Free Software Foundation Category: GNU Date: 2008-09-02 21:04:48 Image: 2008/09/happy-gnu.jpg +License: CC BY-ND 3.0 Slug: happy-birthday-to-gnu Tags: GNU Time: 5:51 diff --git a/content/articles/locutus-de-gnu.md b/content/articles/locutus-de-gnu.md index 1b78e14..8c0fedf 100644 --- a/content/articles/locutus-de-gnu.md +++ b/content/articles/locutus-de-gnu.md @@ -3,6 +3,7 @@ Category: Cine Date: 2017-02-01 00:03 Image: 2017/02/locutus-gnu.jpg Lang: es +License: Public Domain Modified: 2019-02-10 12:23 Og_video: https://archive.org/download/libreweb/locutus.webm Slug: locutus-de-gnu diff --git a/content/articles/rms-en-dominio-digital.md b/content/articles/rms-en-dominio-digital.md index 3c52118..567d93b 100644 --- a/content/articles/rms-en-dominio-digital.md +++ b/content/articles/rms-en-dominio-digital.md @@ -2,6 +2,7 @@ Author: Jesús E. Category: Opinión Date: 2018-06-09 10:07 Image: 2018/06/rms-dominio-digital.jpg +License: CC BY-ND 4.0 Og_video: https://archive.org/download/libreweb/StallmanenDominioDigital.webm Slug: rms-en-dominio-digital Tags: GNU/Linux @@ -29,7 +30,7 @@ la Entrevista en vídeo. Argentina entre 1996 y 2011.En el año 2018 volvió en formato de radio. Sus integrantes son **Claudio Regis** (Conductor) y **Daniela Gastaminza**, -**Alejandro Ponike** y **Daniel "Chacal"** Sentinelli (columnistas). +**Alejandro Ponike** y **Daniel "Chacal" Sentinelli** (columnistas). [rms]: https://es.wikipedia.org/wiki/Richard_Stallman diff --git a/content/articles/sin-parar.md b/content/articles/sin-parar.md index 74583ce..b917324 100644 --- a/content/articles/sin-parar.md +++ b/content/articles/sin-parar.md @@ -3,6 +3,7 @@ Category: Cine Date: 2017-07-16 12:15 Image: 2017/07/sin-parar.jpg Lang: es +License: CC BY-SA 3.0 Modified: 2019-02-10 11:46:44 Og_video: https://archive.org/download/libreweb/sin-parar.webm Slug: sin-parar @@ -24,14 +25,3 @@ generación tras generación hay alguien encargado de revisarlo minuciosamente [...] y que pueda seguir funcionando en todo el mundo sin parar». Así comienza este cortometraje educativo sobre el sistema capitalista. ¿Seguirá funcionando siempre **sin parar**? - -
-Mostrar Más -El vídeo se encuentra bajo la licencia -CC BY-SA 3.0 y fue -obtenido de -[la instancia de Mediagoblin de Roaming Initiative][sinparar]{:target="_blank" rel="noopener noreferrer"} -
- -[sinparar]: http://roaming-initiative.com/mediagoblin/u/rafapoverello/m/sin-parar/ diff --git a/libretube-theme/templates/article.html b/libretube-theme/templates/article.html index d8ca305..574a5cb 100644 --- a/libretube-theme/templates/article.html +++ b/libretube-theme/templates/article.html @@ -76,11 +76,67 @@
-
+
{{ article.content }}
+ +
+
{{ _('Licencia') }}
+ {% if article.license == LICENSE['allrights']['name'] %} + + {{ article.license }} + + {% elif article.license == LICENSE['ccby4']['name']%} + + {{ article.license }} + {% elif article.license == LICENSE['ccbysa4']['name']%} + + {{ article.license }} + {% elif article.license == LICENSE['ccbynd4']['name']%} + + {{ article.license }} + {% elif article.license == LICENSE['ccbync4']['name']%} + + {{ article.license }} + {% elif article.license == LICENSE['ccbyncsa4']['name']%} + + {{ article.license }} + {% elif article.license == LICENSE['ccbyncnd4']['name']%} + + {{ article.license }} + + {% elif article.license == LICENSE['ccby3']['name']%} + + {{ article.license }} + {% elif article.license == LICENSE['ccbysa3']['name']%} + + {{ article.license }} + {% elif article.license == LICENSE['ccbynd3']['name']%} + + {{ article.license }} + {% elif article.license == LICENSE['ccbync3']['name']%} + + {{ article.license }} + {% elif article.license == LICENSE['ccbyncsa3']['name']%} + + {{ article.license }} + {% elif article.license == LICENSE['ccbyncnd3']['name']%} + + {{ article.license }} + {% elif article.license == LICENSE['cc01']['name']%} + + {{ article.license }} + {% elif article.license == LICENSE['publicdomain']['name']%} + + {{ article.license }} + {% else %} + CC BY-SA 4.0 + {% endif %} +
+ +

diff --git a/pelicanconf.py b/pelicanconf.py index 01a490f..c4babb0 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -117,6 +117,85 @@ SOCIAL = { 'pump': '#' } +LICENSE = { + + 'allrights': { + 'name': 'All rights reserved' + }, + 'ccby4': { + 'name': 'CC BY 4.0', + 'fullname': 'Attribution 4.0 International', + 'url': 'https://creativecommons.org/licenses/by/4.0/' + }, + 'ccbysa4': { + 'name': 'CC BY-SA 4.0', + 'fullname': 'Attribution-ShareAlike 4.0 International', + 'url': 'https://creativecommons.org/licenses/by-sa/4.0/' + }, + + 'ccbynd4': { + 'name': 'CC BY-ND 4.0', + 'fullname': 'Attribution-NoDerivatives 4.0 International', + 'url': 'https://creativecommons.org/licenses/by-nd/4.0/' + }, + 'ccbync4': { + 'name': 'CC BY-NC 4.0', + 'fullname': 'Attribution-NonCommercial 4.0 International', + 'url': 'https://creativecommons.org/licenses/by-nc/4.0/' + }, + 'ccbyncsa4': { + 'name': 'CC BY-NC-SA 4.0', + 'fullname': 'Attribution-NonCommercial-ShareAlike 4.0 International', + 'url': 'https://creativecommons.org/licenses/by-nc-sa/4.0/' + }, + 'ccbyncnd4': { + 'name': 'CC BY-NC-ND 4.0', + 'fullname': 'Attribution-NonCommercial-NoDerivatives 4.0 International', + 'url': 'https://creativecommons.org/licenses/by-nc-nd/4.0/' + }, + + 'ccby3': { + 'name': 'CC BY 3.0', + 'fullname': 'Attribution 3.0 International', + 'url': 'https://creativecommons.org/licenses/by/3.0/' + }, + 'ccbysa3': { + 'name': 'CC BY-SA 3.0', + 'fullname': 'Attribution-ShareAlike 3.0 International', + 'url': 'https://creativecommons.org/licenses/by-sa/3.0/' + }, + + 'ccbynd3': { + 'name': 'CC BY-ND 3.0', + 'fullname': 'Attribution-NoDerivatives 3.0 International', + 'url': 'https://creativecommons.org/licenses/by-nd/3.0/' + }, + 'ccbync3': { + 'name': 'CC BY-NC 3.0', + 'fullname': 'Attribution-NonCommercial 3.0 International', + 'url': 'https://creativecommons.org/licenses/by-nc/3.0/' + }, + 'ccbyncsa3': { + 'name': 'CC BY-NC-SA 3.0', + 'fullname': 'Attribution-NonCommercial-ShareAlike 3.0 International', + 'url': 'https://creativecommons.org/licenses/by-nc-sa/3.0/' + }, + 'ccbyncnd3': { + 'name': 'CC BY-NC-ND 3.0', + 'fullname': 'Attribution-NonCommercial-NoDerivatives 3.0 International', + 'url': 'https://creativecommons.org/licenses/by-nc-nd/3.0/' + }, + 'cc01': { + 'name': 'CC0 1.0', + 'fullname': 'CC0 1.0 Universal - Public Domain Dedication', + 'url': 'https://creativecommons.org/publicdomain/zero/1.0/' + }, + 'publicdomain': { + 'name': 'Public Domain', + 'url': 'https://creativecommons.org/publicdomain/mark/1.0/' + } +} + ANOTHER_READ_MORE_LINK = 'Continúa leyendo {title}' ANOTHER_READ_MORE_LINK_FORMAT = ' {text}'