aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.toml2
-rw-r--r--templates/base.html4
2 files changed, 6 insertions, 0 deletions
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 @@
<meta name="apple-mobile-web-app-status-bar-style" content="default">
{% block css %}<link rel="stylesheet" href="{{ get_url(path="abridge.css", trailing_slash=false, cachebust=true) }}">{% endblock css %}
+ {% if config.extra.favicon %}
+ <link rel="shortcut icon" href="{{ get_url(path=config.extra.favicon, trailing_slash=false) }}" sizes="16x16" type="image/png"/>
+ {% else %}
<link rel="shortcut icon" href="{{ get_url(path="favicon.png", trailing_slash=false) }}" sizes="16x16" type="image/png"/>
+ {% endif %}
<link rel="canonical" href="{{ get_url(path="/") }}">
{% if config.generate_feed %}<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="atom.xml") }}">{% endif %}
{% block ogp_head %}