Hide favicon if not set
Alan Pearce alan@alanpearce.eu
Mon, 11 Sep 2023 17:56:08 +0200
1 files changed, 3 insertions(+), 1 deletions(-)
M themes/bear/templates/base.html → themes/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 %}