use double quotes for metatags
This commit is contained in:
parent
62a2a2d8bd
commit
6b9ac7a254
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue