From 910441751f2ef3eee1f14fc6a15b02eaa7cada16 Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Sat, 21 Jun 2014 15:40:42 +0300 Subject: [PATCH] Add EXTRA_FAVICON option http://realfavicongenerator.net/faq#why_so_many_files --- README.md | 4 ++++ alchemy/templates/base.html | 1 + alchemy/templates/include/favicon.html | 7 +++++++ 3 files changed, 12 insertions(+) create mode 100644 alchemy/templates/include/favicon.html diff --git a/README.md b/README.md index cbd36c2..7e6c79c 100644 --- a/README.md +++ b/README.md @@ -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 | @@ -56,3 +57,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?" diff --git a/alchemy/templates/base.html b/alchemy/templates/base.html index d2d5ecf..c70fb4b 100644 --- a/alchemy/templates/base.html +++ b/alchemy/templates/base.html @@ -9,6 +9,7 @@ {% block title %}{{ SITENAME }}{% endblock title %} + {% include "include/favicon.html" %} {% include "include/feeds.html" %} diff --git a/alchemy/templates/include/favicon.html b/alchemy/templates/include/favicon.html new file mode 100644 index 0000000..50a0826 --- /dev/null +++ b/alchemy/templates/include/favicon.html @@ -0,0 +1,7 @@ +{% if EXTRA_FAVICON %} + + + + + +{% endif %}