django-octicons
Template tags for Django to use GitHub Octicons.
Installation
Grab it from PyPI using pipenv (or pip):
$ pipenv install django-octicons
Install the app in your project:
# settings.py
INSTALLED_APPS = [
# other apps
'octicons',
]
Usage
Load the tag library in your HTML template:
{% load octicons %}
And then, you can use the icons like this:
<a class="btn btn-sm" href="#url" role="button">
{% octicon "eye" %}
Watch
</a>
You can also pass any required attributes:
<a class="btn btn-sm" href="#url" role="button">
{% octicon "thumbsup" height="60" class="large" %}
Confirm Purchase
</a>
All attributes passed will be added as HTML attributes to the SVG element of the icon.
Styling
You should add the following in your styles:
.octicon {
display: inline-block;
vertical-align: text-top;
fill: currentColor;
}
The class octicon will be present in all icons. You are free to style it however you want.
Metadata
Release files for django-octicons 1.0.2
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 |
|---|---|---|---|---|
| django-octicons-1.0.2.tar.gz | 29.6 kB | Without provenance | Details for django-octicons-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_octicons-1.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_octicons-1.0.2-py2.py3-none-any.whl |
Total release size: 58.4 kB
Release files / django-octicons-1.0.2.tar.gz
| Download URL | django-octicons-1.0.2.tar.gz |
|---|---|
| Size | 29.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca6db160a17465d364f153b4e6698435d7c18f1f166cc0d9735b1bb5385dff12
|
|
BLAKE2b-256 checksum How to use checksums |
42c0e79ab9d3768527fa46e4fa8c0cf06d1abd193b886f54b1db0468354960a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Release files / django_octicons-1.0.2-py2.py3-none-any.whl
| Download URL | django_octicons-1.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 28.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7fb395e8fef44df2ccba0a5c39c961d3bcae66276a2374e1954d4b3486d23c62
|
|
BLAKE2b-256 checksum How to use checksums |
b194933c7cffcded9a735dc1bf187f166a7f702eab4bbd1af09d109d5f30bedc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Security for django-octicons 1.0.2
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.