aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorClayton Craft2022-04-17 11:01:09 -0700
committerJieiku2022-05-30 22:17:46 -0700
commit2c6fd450834a1452ef2c5436aa27d90f12f5a7f0 (patch)
treeaef172053e34cfb9ec1e7bff642e9001932855c7 /templates
parent50056964fe7561e0db371ea83a24ba99f881dce5 (diff)
downloadabridge-2c6fd450834a1452ef2c5436aa27d90f12f5a7f0.tar.gz
abridge-2c6fd450834a1452ef2c5436aa27d90f12f5a7f0.tar.bz2
abridge-2c6fd450834a1452ef2c5436aa27d90f12f5a7f0.zip
base: add option to allow overriding the default favicon
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html4
1 files changed, 4 insertions, 0 deletions
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 %}