Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hardcoded favicon name can be configured now #60

Merged
merged 2 commits into from
Jan 5, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,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