Skip to content

Commit

Permalink
Merge pull request #60 from mstreuhofer/favicon
Browse files Browse the repository at this point in the history
hardcoded favicon name can be configured now
  • Loading branch information
duilio committed Jan 5, 2015
2 parents 031a57f + 05ce31a commit 2eaa00a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ medium.com like "X min read" feature. You need to activate the plugin

- ``X_MIN_READ``: ``False``

Favicon
-------

- ``FAVICON_FILENAME``: set to path of your favicon. The default is empty in
which case the template will use the hardcoded address ``favicon.png``.

Contribute
----------

Expand Down
7 changes: 6 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@
<meta name="robots" content="noindex, nofollow" />
{% endif %}

<link href="{{ SITEURL }}/favicon.png" rel="icon">
{% if FAVICON_FILENAME %}
<link href="{{ SITEURL }}/{{ FAVICON_FILENAME }}" rel="icon">
{% else %}
<link href="{{ SITEURL }}/favicon.png" rel="icon">
{% endif %}

<link href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" media="screen, projection"
rel="stylesheet" type="text/css">

Expand Down

0 comments on commit 2eaa00a

Please sign in to comment.