fix(metatags): check if value is set for key

This commit is contained in:
Faris Ansari 2022-05-11 13:28:38 +05:30
parent 4a3f0380dc
commit 6994cc684f

View file

@ -16,7 +16,7 @@ class MetaTags:
def init_metatags_from_context(self):
for key in METATAGS:
if key not in self.tags and self.context.get(key):
if not self.tags.get(key) and self.context.get(key):
self.tags[key] = self.context[key]
if not self.tags.get("title"):