all repos — website @ ad65cd42eb600a4c9ae2cd2a27b28d3d6a50088f

My website

Hide favicon if not set
Alan Pearce alan@alanpearce.eu
Mon, 11 Sep 2023 17:56:08 +0200
commit

ad65cd42eb600a4c9ae2cd2a27b28d3d6a50088f

parent

c8d206442c65eaf999445db6c104ee55a07dd931

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M themes/bear/templates/base.htmlthemes/bear/templates/base.html
@@ -6,7 +6,9 @@ {%- include "security_tags.html" ignore missing %}   {%- endif %}
   <meta charset="utf-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  <link rel="shortcut icon" href="{{ config.extra.favicon | default(value="data:,") }}">
+  {%- if config.extra.favicon %}
+  <link rel="shortcut icon" href="{{ config.extra.favicon }}">
+  {%- endif %}
   <title>{%- block title %}{{ config.title }}{%- endblock %}</title>
   <meta name="referrer" content="no-referrer-when-downgrade">
   {%- if config.generate_feed %}