Skip to content

Commit

Permalink
Set default favicon value to not defined instead of hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
v.kholyavka committed Dec 18, 2018
1 parent 842dce8 commit 4458443
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arctic/generics.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def get_site_logo(self):
return arctic_setting("ARCTIC_SITE_LOGO")

def get_site_favicon(self):
return getattr(settings, "ARCTIC_SITE_FAVICON", "/static/favicon.ico")
return getattr(settings, "ARCTIC_SITE_FAVICON", None)

def get_site_name(self):
return arctic_setting("ARCTIC_SITE_NAME")
Expand Down
4 changes: 3 additions & 1 deletion arctic/templates/arctic/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<meta name="description" content="">
<meta name="author" content="">

<link rel="shortcut icon" href="{% static SITE_FAVICON %}"/>
{% if SITE_FAVICON %}
<link rel="shortcut icon" href="{% static SITE_FAVICON %}"/>
{% endif %}

<title>
{% block title %}
Expand Down

0 comments on commit 4458443

Please sign in to comment.