diff options
author | Alan Pearce | 2023-09-11 17:56:08 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-11 17:56:08 +0200 |
commit | ad65cd42eb600a4c9ae2cd2a27b28d3d6a50088f (patch) | |
tree | 795c0971db8ddca1c09aaa969d55c02fe99e72f0 /themes | |
parent | c8d206442c65eaf999445db6c104ee55a07dd931 (diff) | |
download | website-ad65cd42eb600a4c9ae2cd2a27b28d3d6a50088f.tar.lz website-ad65cd42eb600a4c9ae2cd2a27b28d3d6a50088f.tar.zst website-ad65cd42eb600a4c9ae2cd2a27b28d3d6a50088f.zip |
Hide favicon if not set
Diffstat (limited to 'themes')
-rw-r--r-- | themes/bear/templates/base.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/bear/templates/base.html b/themes/bear/templates/base.html index 3a2d565..3845773 100644 --- a/themes/bear/templates/base.html +++ b/themes/bear/templates/base.html @@ -6,7 +6,9 @@ {%- 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 %} |