From a735445a6b75ef5d262f74221d19e083f363852e Mon Sep 17 00:00:00 2001 From: Vanildo Souto Mangueira Date: Sat, 4 Mar 2017 17:27:51 -0300 Subject: [PATCH] Adicionando suporte a escolher um formato de favicon --- README.md | 17 +++++++++++++++++ templates/base.html | 3 +++ 2 files changed, 20 insertions(+) diff --git a/README.md b/README.md index c383fb5..ba470c1 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,23 @@ Accept many analytics: - Gauges: ``GAUGES`` - Piwik: ``PIWIK_URL`` and ``PIWIK_SITE_ID``. +### Favicon + +To define if using a favicon and format: + +```python +FAVICON = 'favicon.ico' +``` + +**WARNING:** Is necessary static_paths configured: + +```python +STATIC_PATHS = ['images', 'extra/favicon.ico'] +EXTRA_PATH_METADATA = { + 'extra/favicon.ico': {'path': 'favicon.ico'} +} +``` + ### Other configuration - If ``ADDTHIS_PUBID`` is defined sharing buttons from AddThis will appear diff --git a/templates/base.html b/templates/base.html index bdbda51..c514fbc 100644 --- a/templates/base.html +++ b/templates/base.html @@ -94,6 +94,9 @@ {% endif %} {% endfor %} {% endblock twitter_card %} + {% if FAVICON %} + + {% endif %}