Adicionando suporte a escolher um formato de favicon

This commit is contained in:
Vanildo Souto Mangueira 2017-03-04 17:27:51 -03:00
parent e565929136
commit a735445a6b
2 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -94,6 +94,9 @@
{% endif %}
{% endfor %}
{% endblock twitter_card %}
{% if FAVICON %}
<link rel="icon" href="/{{FAVICON}}">
{% endif %}
</head>
<body>