Skip to content

Commit

Permalink
fix twitter card
Browse files Browse the repository at this point in the history
  • Loading branch information
aganglada committed Jan 1, 2021
1 parent 7bacc81 commit ac218b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface SEOProps {
locale?: string
type?: string
author?: string
card?: 'summary' | 'summary_large_image' | 'player' | 'app'
datePublished?: string
dateModified?: string
}
Expand Down
2 changes: 1 addition & 1 deletion useSeo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function useSeo(props: SEOProps): SEOReturnProps {
props.author,
<meta name="twitter:creator" content={props.author} key="seo-twitter:creator" />,
),
tag(props.type, <meta name="twitter:card" content={props.type} key="seo-twitter:card" />),
tag(props.card, <meta name="twitter:card" content={props.type} key="seo-twitter:card" />),
]

return {
Expand Down

0 comments on commit ac218b8

Please sign in to comment.