Easily add shortcut icons to any wagtail site.
Project description
Wagtail Favicon
Easily add shortcut icons to any wagtail site. Upload a .png image from a wagtail settings page and wagtail-favicon will resize it and add provide markup to your pages via a template tag.
Installation & Setup
Install with pip
pip install wagtail-favicon
or
poetry add wagtail-favicon
Add to Django installed apps
INSTALLED_APPS = [
#...
'wagtail_favicon',
]
Add routes to app.urls
from wagtail_favicon.urls import urls as favicon_urls
urlpatterns += [
url(r'^documents/', include(wagtaildocs_urls)),
url(r'^search/$', search, name='search'),
url(r'', include(wagtail_urls)),
url(r'', include(favicon_urls)), # <------ add urls to existing urls
]
Once you've completed setup you will now be able to access the folloing urls:
Add template tag to tag in templates/base.html
{% load favicon_tags %}
<html>
<head>
{% favicon_meta %}
</head>
Edit Settings
Go to Wagtail Admin >> Settings >> Favicon
Configure settings
For best results use a transparent png at 1024 x 1024.
Ideally pre optimised with a tool like tinypng.com.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wagtail-favicon-0.1.7.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for wagtail_favicon-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9a8b0026a8f6ed8041a298b85560ba5a28d6ac3698ba423f6c6b47486e28c41 |
|
MD5 | 754eba6f786a6354c61399bb178aca20 |
|
BLAKE2b-256 | 1b24f8a8d216c091292d5c557a42c4acc05cbb1cc12fcda4c8a0a997148a070a |