Skip to content

Commit

Permalink
Fix example home page
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed May 16, 2021
1 parent 2337fc3 commit db5aeb5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
7 changes: 4 additions & 3 deletions example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ""))

DJANGO_ICONS_FOLDER = os.path.abspath(os.path.join(BASE_DIR, "..", "django_icons"))
if DJANGO_ICONS_FOLDER not in sys.path:
sys.path.insert(0, DJANGO_ICONS_FOLDER)
# Include SRC_FOLDER in path
SRC_FOLDER = os.path.abspath(os.path.join(BASE_DIR, "..", "src"))
if SRC_FOLDER not in sys.path:
sys.path.insert(0, SRC_FOLDER)

DEBUG = True

Expand Down
13 changes: 7 additions & 6 deletions example/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<p>
{% icon 'user' %}
The `user` icon from FontAwesome 4
The `user` icon from FontAwesome 4.
</p>

<p>
Expand All @@ -22,27 +22,28 @@

<p>
{% icon 'star' renderer='Bootstrap3Renderer' %}
The `star` icon from Bootstrap 3, with the renderer explicitly set
The `star` icon from Bootstrap 3, with the renderer explicitly set.
</p>

<p>
{% icon 'face' 'md-inherit' renderer='MaterialRenderer' %}
The `face` icon from Material, with the renderer explicitly set and an extra class to set the size
The `face` icon from Material, with the renderer explicitly set and an extra class to set the size.
</p>

<p>
{% icon 'wikimedia-download' renderer='ImageRenderer' %}
The <a href="https://commons.wikimedia.org/wiki/File:Download-Icon.png" target="_blank">WikiMedia Download Icon</a>, with the renderer explicitly set
The <a href="https://commons.wikimedia.org/wiki/File:Download-Icon.png" target="_blank">WikiMedia Download Icon</a>,
with the renderer explicitly set.
</p>

<p>
{% icon 'paperplane' %}
A `paperplane` icon that is included in the source as SVG
A `paperplane` icon that is included in the source as SVG.
</p>

<p>
{% icon 'feather' 'svg-icon-o' %}
A `feather` icon that is included in the source as SVG, with an extra class to render the outline
A `feather` icon that is included in the source as SVG, with an extra class to render the outline.
</p>

{% endblock %}

0 comments on commit db5aeb5

Please sign in to comment.