allow link as metatags (#3980)
* allow link as metatags * remove stray print & fix nit
This commit is contained in:
parent
001b8c4222
commit
46be46d6ea
@ -429,11 +429,11 @@ def add_meta(
|
||||
Returns:
|
||||
The component with the metadata added.
|
||||
"""
|
||||
meta_tags = [Meta.create(**item) for item in meta]
|
||||
|
||||
children: list[Any] = [
|
||||
Title.create(title),
|
||||
meta_tags = [
|
||||
item if isinstance(item, Component) else Meta.create(**item) for item in meta
|
||||
]
|
||||
|
||||
children: list[Any] = [Title.create(title)]
|
||||
if description:
|
||||
children.append(Description.create(content=description))
|
||||
children.append(Image.create(content=image))
|
||||
|
Loading…
Reference in New Issue
Block a user