From 2c6fd450834a1452ef2c5436aa27d90f12f5a7f0 Mon Sep 17 00:00:00 2001
From: Clayton Craft
Date: Sun, 17 Apr 2022 11:01:09 -0700
Subject: base: add option to allow overriding the default favicon
---
config.toml | 2 ++
templates/base.html | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/config.toml b/config.toml
index 9657dec..6ecae61 100644
--- a/config.toml
+++ b/config.toml
@@ -57,6 +57,8 @@ menu_footer = [
# meta tags
twitter = "your-user-name"
+# favicon = images/favicon.png # override default favicon
+
# Footer social links; full options listed in macros/social.html
[extra.social]
feed = true
diff --git a/templates/base.html b/templates/base.html
index 53cde0d..7f6f95f 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -40,7 +40,11 @@
{% block css %}{% endblock css %}
+ {% if config.extra.favicon %}
+
+ {% else %}
+ {% endif %}
{% if config.generate_feed %}{% endif %}
{% block ogp_head %}
--
cgit v1.3.1