diff --git a/src/components/Post/FullPost.tsx b/src/components/Post/FullPost.tsx index 2bc0f39c..b8d42261 100644 --- a/src/components/Post/FullPost.tsx +++ b/src/components/Post/FullPost.tsx @@ -48,7 +48,7 @@ const FullPost: React.FC = ({ post, series }) => { coverImagePublicId, date, excerpt, - path, + slug, podcastUrl, tags, title, @@ -58,7 +58,7 @@ const FullPost: React.FC = ({ post, series }) => { let coverContainer: React.ReactNode = ( {excerpt} = ({ post, eager = false }) => { const { frontmatter } = post; - const { coverImagePublicId, date, excerpt, path, title } = frontmatter; + const { coverImagePublicId, date, excerpt, slug, title } = frontmatter; - const postPath = `/posts/${path}`; + const postPath = `/posts/${slug}`; const coverContainer = ( @@ -25,7 +25,7 @@ const PostSummary: React.FC = ({ post, eager = false }) => { className={clsxm( '-mx-2 mb-4 object-cover object-center shadow sm:mx-0 sm:rounded-lg' )} - publicId={coverImagePublicId || `posts/${path}/cover`} + publicId={coverImagePublicId || `posts/${slug}/cover`} alt={excerpt || title} height={630} width={1200}