Skip to content
Snippets Groups Projects
Commit b2662ad0 authored by Hnk Reno's avatar Hnk Reno Committed by GitHub
Browse files

Set propper link attribute 'sizes' in templatetag

There seems to be a typo in the templatetag generator on lines 26 and 30.

The attribute 'sizes=' written as 'size ='. This break w3c tests as that attribute is not available in the link tag.
parent de3f4686
No related branches found
No related tags found
No related merge requests found
......@@ -23,11 +23,11 @@ def placeFavicon(context):
for rel in config:
for size in sorted(config[rel], reverse=True):
n = fav.get_favicon(size=size, rel=rel)
html += '<link rel="%s" size ="%sx%s" href="%s"/>' % (
html += '<link rel="%s" sizes="%sx%s" href="%s"/>' % (
n.rel, n.size, n.size, n.faviconImage.url)
default_fav = fav.get_favicon(size=32, rel='shortcut icon')
html += '<link rel="%s" size ="%sx%s" href="%s"/>' % (
html += '<link rel="%s" sizes="%sx%s" href="%s"/>' % (
default_fav.rel, default_fav.size, default_fav.size, default_fav.faviconImage.url)
return mark_safe(html)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment