timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
7.36k stars 1.84k forks source link

Inconsistent Meta Descriptions in SEO Optimization #911

Closed ray-android closed 1 month ago

ray-android commented 2 months ago

Describe the bug The meta descriptions (<meta name="description" content=" and <meta property="og:description" content=") are displaying different content on the webpage, causing inconsistency in SEO optimization.

To Reproduce Steps to reproduce the behavior:

Navigate to the webpage. View the page source. Compare the content of <meta name="description" content=" and <meta property="og:description" content=".

Expected behavior Both <meta name="description" content=" and <meta property="og:description" content=" should display the same content, ensuring consistency in SEO optimization.

Additional context The suggested solution is to modify the genPageMetadata function in the seo.tsx file to ensure that both meta descriptions use the same content provided through the description prop, falling back to the default siteMetadata.description if not provided.