diff --git a/src/templates/common/meta/index.tsx b/src/templates/common/meta/index.tsx index 5443b3ea9..15803029a 100644 --- a/src/templates/common/meta/index.tsx +++ b/src/templates/common/meta/index.tsx @@ -58,21 +58,17 @@ const IOSBanner = () => ( ) -const CustomTags = ({ tags }: { tags: MetaTag[] }) => { - return ( - - {tags.map?.(({ tag: Tag, attributes }, i) => { - if (attributes?.property === 'og:title') { - return {attributes.content} - } else if (attributes?.name === 'title') { - return {attributes.content} - } else { - return - } - })} - - ) -} +const CustomTags = ({ tags }: { tags: MetaTag[] }) => ( + + {tags.map?.(({ tag: Tag, attributes }, i) => + attributes.name === 'title' ? ( + {attributes.content} + ) : ( + + ) + )} + +) const DefaultTags = ({ resource,