Skip to content

Commit

Permalink
fix: format excerpt seo
Browse files Browse the repository at this point in the history
  • Loading branch information
aulianza committed Nov 12, 2023
1 parent 7ab14c2 commit d682f11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/blog/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useEffect } from 'react';

import BackButton from '@/common/components/elements/BackButton';
import Container from '@/common/components/elements/Container';
import { formatExcerpt } from '@/common/helpers';
import { BlogDetailProps } from '@/common/types/blog';
import BlogDetail from '@/modules/blog/components/BlogDetail';
import { getBlogDetail } from '@/services/blog';
Expand Down Expand Up @@ -41,7 +42,7 @@ const BlogDetailPage: NextPage<BlogDetailPageProps> = ({ blog }) => {
<>
<NextSeo
title={`${blogData?.title?.rendered} - Blog Ryan Aulia`}
description={blogData?.excerpt?.rendered}
description={formatExcerpt(blogData?.excerpt?.rendered)}
canonical={canonicalUrl}
openGraph={{
type: 'article',
Expand Down

1 comment on commit d682f11

@vercel
Copy link

@vercel vercel bot commented on d682f11 Nov 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.