jaynewey / django-octicons-v10

Django templatetags for GitHub Octicons v10.0.0+.
https://pypi.org/project/django-octicons-v10/
MIT License
2 stars 4 forks source link

Keywords #8

Closed jaynewey closed 3 years ago

jaynewey commented 3 years ago

Octicons provides a list of alternative keywords for each icon.

Currently, django-octicons-v10 does not provide a native way of finding an icon's keywords.

This would be done on an existing Octicon instance:

octoface = Octicon("octoface")
octoface.keywords
>>> ["octocat", "brand"]

This should be an easy implementation - include keywords.json and search against the parsed dict.

This should be included in a minor release.