Merge branch 'extra-favicon' of github.com:raymondwanyoike/pelican-alchemy into raymondwanyoike-extra-favicon

* 'extra-favicon' of github.com:raymondwanyoike/pelican-alchemy:
  Add EXTRA_FAVICON option
main
Raymond Wanyoike 2014-08-08 20:08:39 +03:00
commit 479f12e827
3 changed files with 12 additions and 0 deletions

View File

@ -24,6 +24,7 @@ Pelican [documentation](http://docs.getpelican.com/en/latest/)
| Config | Type | Description |
| ------------------------- | ---------- | ------------------------- |
| EXTRA_FAVICON [^1] | BOOL | Extra favicons |
| LICENSE_NAME | TEXT | License (footer) |
| LICENSE_URL | URL | - |
| MENU_ITEMS | DICT | Menu items |
@ -58,3 +59,6 @@ An RSS icon will also appear on the nav if `FEED_ATOM` or `FEED_RSS` is set.
## License
MIT
[^1]: http://realfavicongenerator.net/faq#why_so_many_files "Why so many files?"

View File

@ -9,6 +9,7 @@
<title>{% block title %}{{ SITE_SUBTEXT }}{% endblock title %}</title>
{% include "include/favicon.html" %}
{% include "include/feeds.html" %}
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css">

View File

@ -0,0 +1,7 @@
{% if EXTRA_FAVICON %}
<link rel="icon" type="image/png" href="/favicon-196x196.png" sizes="196x196">
<link rel="icon" type="image/png" href="/favicon-160x160.png" sizes="160x160">
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
{% endif %}