Skip to content

Commit

Permalink
fix: use description field in meta tags (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris authored Oct 17, 2024
1 parent 7467472 commit fa94778
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/(routes)/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export async function generateMetadata({
}
const title = entry.fields.title;
const description =
entry.fields.description ??
documentToPlainTextString(entry.fields.content).substring(0, 50) + "...";

const imageUrl = `https:${entry.fields.featuredImage?.fields.file?.url}`;

return {
Expand Down

0 comments on commit fa94778

Please sign in to comment.