1
Fork 0

use double quotes for metatags

This commit is contained in:
Jake Howard 2016-08-24 11:05:25 +01:00
parent 62a2a2d8bd
commit 6b9ac7a254
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -71,21 +71,21 @@ def tag_item(instance):
if not value: if not value:
continue continue
metatags.append( metatags.append(
"<meta name='{0}' content='{1}' />".format(tag, value) "<meta name=\"{0}\" content=\"{1}\" />".format(tag, value)
) )
for tag, value in get_og_tags(instance).items(): for tag, value in get_og_tags(instance).items():
if not value: if not value:
continue continue
metatags.append( metatags.append(
"<meta property='{0}' content='{1}' />".format(tag, value) "<meta property=\"{0}\" content=\"{1}\" />".format(tag, value)
) )
for tag, value in get_schema_tags(instance).items(): for tag, value in get_schema_tags(instance).items():
if not value: if not value:
continue continue
metatags.append( metatags.append(
"<meta itemprop='{0}' content='{1}' />".format(tag, value) "<meta itemprop=\"{0}\" content=\"{1}\" />".format(tag, value)
) )
general_tags = get_general_tags(instance).items() general_tags = get_general_tags(instance).items()
@ -97,7 +97,7 @@ def tag_item(instance):
if not value: if not value:
continue continue
metatags.append( metatags.append(
"<meta name='{0}' content='{1}' />".format(tag, value) "<meta name=\"{0}\" content=\"{1}\" />".format(tag, value)
) )
instance.metatags = '\n'.join(metatags) instance.metatags = '\n'.join(metatags)