Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fontawesome.py #1

Merged
merged 1 commit into from
May 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fontawesome/templatetags/fontawesome.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django import template
from django.conf import settings
from django.contrib.staticfiles.templatetags.staticfiles import static
from django.templatetags.static import static
from django.utils.html import format_html, mark_safe

register = template.Library()
Expand All @@ -28,4 +28,4 @@ def fontawesome_icon(icon, title='', large=False, fixed=False, spin=False, li=Fa
def fontawesome_stylesheet():
href = getattr(settings, 'FONTAWESOME_CSS_URL', static('fontawesome/css/font-awesome.min.css'))
link = format_html('<link href="{0}" rel="stylesheet" media="all">', href)
return link
return link