about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-06-30 16:40:29 +0200
committerAlan Pearce2023-06-30 16:40:29 +0200
commit416aed825565074c19ab4550766da1623b8bb326 (patch)
tree7da2111f0a3e7120bf7f5421fce1514788ab6bf4
parentf26431f4d0479337f557d5faa7a0bc843c2e81b9 (diff)
downloadwebsite-416aed825565074c19ab4550766da1623b8bb326.tar.lz
website-416aed825565074c19ab4550766da1623b8bb326.tar.zst
website-416aed825565074c19ab4550766da1623b8bb326.zip
Use empty favicon if not configured in theme
-rw-r--r--themes/bear/templates/base.html2
-rw-r--r--themes/bear/templates/favicon.html3
2 files changed, 1 insertions, 4 deletions
diff --git a/themes/bear/templates/base.html b/themes/bear/templates/base.html
index a865bac..7fa1991 100644
--- a/themes/bear/templates/base.html
+++ b/themes/bear/templates/base.html
@@ -3,7 +3,7 @@
 <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 %}
diff --git a/themes/bear/templates/favicon.html b/themes/bear/templates/favicon.html
deleted file mode 100644
index 28b504d..0000000
--- a/themes/bear/templates/favicon.html
+++ /dev/null
@@ -1,3 +0,0 @@
-{% if config.extra.favicon %}
-  <link rel="shortcut icon" href="{{ config.extra.favicon }}">
-{%- endif -%}