Skip to content

Commit

Permalink
feat: change seo to each page title
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSuperDev committed Oct 12, 2021
1 parent cc212e1 commit 42d82cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const defaultMeta = {
type: 'website',
robots: 'follow, index',
};
defaultMeta.image = openGraph(defaultMeta.title, defaultMeta.description);

type SeoProps = {
date?: string;
Expand All @@ -29,6 +28,7 @@ export default function Seo(props: SeoProps) {
meta['title'] = props.templateTitle
? `${props.templateTitle} | ${meta.site_name}`
: meta.title;
meta.image = openGraph(meta.title, meta.description);

return (
<Head>
Expand Down

0 comments on commit 42d82cf

Please sign in to comment.