Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
remove tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahalwy committed Aug 7, 2020
1 parent d9bbbcb commit 5c3d1f5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/helpers/makeHeadTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@ export default function makeHeadTags({ title, description, url, image }) {
if (title) {
tags.title = title;
tags.meta.push(
{ property: 'og:site_name', content: title },
{ property: 'og:title', content: title },
{ name: 'twitter:title', content: title }
{ property: "og:site_name", content: title },
{ property: "og:title", content: title },
{ name: "twitter:title", content: title }
);
}

if (description) {
tags.description = description;
tags.meta.push(
{ name: 'description', content: description },
{ property: 'og:description', content: description },
{ name: 'twitter:description', content: description }
{ name: "description", content: description },
{ property: "og:description", content: description },
{ name: "twitter:description", content: description }
);
}

if (url) {
tags.meta.push(
{ property: 'og:url', content: url },
{ name: 'twitter:url', content: url }
);
}
// if (url) {
// tags.meta.push(
// { property: 'og:url', content: url },
// { name: 'twitter:url', content: url }
// );
// }

if (image) {
tags.meta.push(
{ property: 'og:image', content: image },
{ name: 'twitter:image', content: image }
{ property: "og:image", content: image },
{ name: "twitter:image", content: image }
);
}

Expand Down

0 comments on commit 5c3d1f5

Please sign in to comment.