From 23ac7c30a4384145201746e9f0d5ac150aace8d9 Mon Sep 17 00:00:00 2001
From: Alexandre Vicenzi
Date: Thu, 4 Feb 2021 22:06:02 +0100
Subject: [PATCH] Hide CC icon
Fix #223
---
docs/pelicanconf.py | 1 +
templates/partial/cc_license.html | 2 ++
2 files changed, 3 insertions(+)
diff --git a/docs/pelicanconf.py b/docs/pelicanconf.py
index 30c9624..d4c2210 100644
--- a/docs/pelicanconf.py
+++ b/docs/pelicanconf.py
@@ -58,6 +58,7 @@ CC_LICENSE = {
"name": "Creative Commons Attribution-ShareAlike",
"version": "4.0",
"slug": "by-sa",
+ "icon": True,
}
COPYRIGHT_YEAR = datetime.now().year
diff --git a/templates/partial/cc_license.html b/templates/partial/cc_license.html
index 1e05c7c..d7d6ce9 100644
--- a/templates/partial/cc_license.html
+++ b/templates/partial/cc_license.html
@@ -3,6 +3,7 @@
{% include "partial/flex.html" %}
+ {% if CC_LICENSE['icon'] != False %}
@@ -17,6 +18,7 @@
width="80"
height="15"/>
+ {% endif %}
{% if STATUSCAKE %}
{% include "partial/statuscake.html" %}
{% endif %}