diff --git a/README.md b/README.md index be082b2..4bfa2db 100644 --- a/README.md +++ b/README.md @@ -24,11 +24,30 @@ NUIR_AUTHORS = { ### Licence -La licence par défaut est la CC-BY-SA 4.0. Il est possible de la modifier dans le footer qui se trouve dans le fichier `templates/base.html`. +Il est possible d’utiliser une licence à mettre sur le contenu des articles. Il faut rajouter une valeur à la variable `NUIR_LICENCE` dans le fichier de configuration de Pelican. + +Les suivantes sont natives au thème: + +* CCBY +* CCBYSA +* CCBYND +* CCBYNCSA +* CCBYNCND +* GNUFDL + +Pour mettre une autre licence ou un bouton personnalisé à cet emplacement, il faut utiliser la structure suivante: + +``` +NUIR_LICENCE = { + 'link': 'lien qui redirige l’utilisateur quand il clique sur l’image', + 'alt': 'alt de l’image', + 'image': 'chemin de l’image' +} +``` ## Support de plugins Ce thème supporte les plugins suivant : -* [Series](https://github.com/getpelican/pelican-plugins/tree/master/series). +* [Series](https://github.com/getpelican/pelican-plugins/tree/master/series) * [Drafts](https://github.com/noirbizarre/pelican-drafts) diff --git a/templates/base.html b/templates/base.html index 1d8dabd..e6446fd 100644 --- a/templates/base.html +++ b/templates/base.html @@ -35,7 +35,23 @@ Thème principal fait par Eban, inspiré en partie par medius. Utilise le moteur Pelican.
+ {% if NUIR_LICENCE == "CCBY" %} + Creative Commons License + {% elif NUIR_LICENCE == "CCBYSA" %} Creative Commons License + {% elif NUIR_LICENCE == "CCBYNC" %} + Creative Commons License + {% elif NUIR_LICENCE == "CCBYNCSA" %} + Creative Commons License + {% elif NUIR_LICENCE == "CCBYND" %} + Creative Commons License + {% elif NUIR_LICENCE == "CCBYNCND" %} + Creative Commons License + {% elif NUIR_LICENCE == "GNUFDL" %} + GNU FDL + {% elif NUIR_LICENCE %} + {{ NUIR_LICENCE['alt'] }} + {% endif %}