Use empty favicon if not configured in theme
Alan Pearce alan@alanpearce.eu
Fri, 30 Jun 2023 16:40:29 +0200
2 files changed, 1 insertions(+), 4 deletions(-)
M themes/bear/templates/base.html → themes/bear/templates/base.html
@@ -3,7 +3,7 @@ <html lang="{{ lang | default(value="en-US" ) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - {% include "favicon.html" ignore missing -%} + <link rel="shortcut icon" href="{{ config.extra.favicon | default(value="data:,") }}"> <title>{%- block title %}{{ config.title }}{%- endblock %}</title> <meta name="referrer" content="no-referrer-when-downgrade"> {%- if config.generate_feed %}
D themes/bear/templates/favicon.html
@@ -1,3 +0,0 @@-{% if config.extra.favicon %} - <link rel="shortcut icon" href="{{ config.extra.favicon }}"> -{%- endif -%}