From 1755fb15d462f2d25930c1b3ae234bb60b5e38eb Mon Sep 17 00:00:00 2001 From: Pico2x Date: Thu, 29 Sep 2022 19:38:36 +0100 Subject: [PATCH] SEO for posts --- web/pages/post/[...slugs]/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/pages/post/[...slugs]/index.tsx b/web/pages/post/[...slugs]/index.tsx index b71b7cca..537afc1e 100644 --- a/web/pages/post/[...slugs]/index.tsx +++ b/web/pages/post/[...slugs]/index.tsx @@ -24,6 +24,7 @@ import { PostCommentInput, PostCommentThread } from 'web/posts/post-comments' import { useCommentsOnPost } from 'web/hooks/use-comments' import { useUser } from 'web/hooks/use-user' import { usePost } from 'web/hooks/use-post' +import { SEO } from 'web/components/SEO' export async function getStaticProps(props: { params: { slugs: string[] } }) { const { slugs } = props.params @@ -68,6 +69,11 @@ export default function PostPage(props: { return ( +
<Row>