Skip to content

Commit 7a189e9

Browse files
Update post.js
1 parent 575f644 commit 7a189e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/templates/post.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const Post = ({ data, pageContext }) => {
1414
return (
1515
<Layout>
1616
<Helmet title={`${post.frontmatter.title} React Hook - useHooks`}>
17+
<link rel="canonical" href={`https://usehooks.com/${post.fields.slug}/`} />
1718
<meta property="og:title" content={post.frontmatter.title} />
1819
<meta property="og:description" content="" />
1920
<meta name="twitter:card" content="summary_large_image" />

0 commit comments

Comments
 (0)