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.
Version 0.3.0 is for Wagtail versions 3+.
Installation & Setup
Install with pip
pip install wagtail-favicon
or
poetry add wagtail-favicon
Add to Django installed apps
INSTALLED_APPS = [
#...
'wagtail.contrib.settings' # <-- ensure you have wagtail settings loaded
'wagtail_favicon',
]
Add routes to app.urls
from wagtail_favicon.urls import urls as favicon_urls
urlpatterns += [
path('documents/', include(wagtaildocs_urls)),
path('search/', search, name='search'),
path('', include(wagtail_urls)),
path('', 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.
Metadata
Release files for wagtail-favicon 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wagtail_favicon-0.3.0.tar.gz | 4.9 kB | Without provenance | Details for wagtail_favicon-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wagtail_favicon-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for wagtail_favicon-0.3.0-py2.py3-none-any.whl |
Total release size: 12.3 kB
Release files / wagtail_favicon-0.3.0.tar.gz
| Download URL | wagtail_favicon-0.3.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b90dbd28da864172c90ba2fafb72068086e6c22fee34ca530d35990dfd50637
|
|
BLAKE2b-256 checksum How to use checksums |
7467d5aa3c2075ba672379a178210fdbab498d6882f3b5996e8c71079bfac657
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / wagtail_favicon-0.3.0-py2.py3-none-any.whl
| Download URL | wagtail_favicon-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4dc8b25026aa31cd18523061e2aa83e198bcc779c24e25f00061dfb68b9e8b87
|
|
BLAKE2b-256 checksum How to use checksums |
ee8945155c34ab4cd47b1d558d75887234fa851b2f79545c144a7478f400e7a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for wagtail-favicon 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.