Skip to content

Commit

Permalink
Updated directory names, semantic mapping, bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-t-frost committed Jan 19, 2019
1 parent 9f92f06 commit b058cce
Show file tree
Hide file tree
Showing 1,544 changed files with 45 additions and 20,214 deletions.
8 changes: 8 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include LICENSE
include README.md
include fontawesome_5/icons.json
include fontawesome_5/icons_semantic_ui.json
recursive-include fontawesome_5 *.py
recursive-include fontawesome_5/static *
recursive-include fontawesome_5/templates *
recursive-include fontawesome_5/templatetags *
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ A utility for using icons in models, forms, and templates.

pipenv install django-fontawesome-5

Add 'fontawesome' to your installed `INSTALLED_APPS`:
Add 'fontawesome_5' to your installed `INSTALLED_APPS`:

INSTALLED_APPS = (
...
'fontawesome5',
'fontawesome_5',
)


Import and use `IconField`:

from fontawesome5.fields import IconField
from fontawesome_5.fields import IconField

class Category(models.Model):
...
Expand All @@ -27,10 +27,10 @@ Import and use `IconField`:

Include Static Files

{% load fontawesome5 %}
{% load fontawesome_5 %}

<head>
{% fontawesome5_static %}
{% fontawesome_5_static %}
...
</head>

Expand All @@ -39,7 +39,7 @@ Include Static Files
You can configure django-fontawesome to use another release/source/cdn by specifying::

FONTAWESOME_5_CSS = URL or None
default: 'fontawesome/css/django-fontawesome.css'
default: 'fontawesome_5/css/django-fontawesome.css'
FONTAWESOME_5_CSS_ADMIN = URL or path
default: None
FONTAWESOME_5_ICON_CLASS = 'default' or 'semantic_ui'
Expand All @@ -66,6 +66,7 @@ Or you can use the `{% fa5_icon %}` template tag.
Required positional arguments: `icon`, `style_prefix`

#### Key word arguments:
- class `extra custom classes`
- color `CSS Color Names`
- border `boolean`
- fixed_width `boolean`
Expand Down Expand Up @@ -99,6 +100,7 @@ Or you can use the `{% fa5_icon %}` template tag.
Required positional arguments: `icon`

#### Key word arguments:
- class `extra custom classes`
- bordered `boolean`
- circular `boolean`
- colored `Semantic UI Colors`
Expand Down
Loading

0 comments on commit b058cce

Please sign in to comment.