Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metatada (SEO) to more pages #45

Open
7 of 10 tasks
dvidsilva opened this issue Feb 22, 2025 · 1 comment
Open
7 of 10 tasks

Add metatada (SEO) to more pages #45

dvidsilva opened this issue Feb 22, 2025 · 1 comment
Assignees

Comments

@dvidsilva
Copy link
Contributor

dvidsilva commented Feb 22, 2025

Created meta information for the individual blog post in a store


export async function generateMetadata({ params }: NewsletterPageProps): Promise<Metadata> {
  const { slug, } = await params;

  const response = await strapiClient.getPage('newsletter', slug);
  const page = response?.data?.[0] as Page;

  return generateSEOMetadata({
    slug,
    entity: {
      url: `/${slug}`,
      SEO: page?.SEO,
    },
    type: 'article',
  });
};

should add to more pages, coming from the API or describing UI pages

  • home page
  • login
  • register
  • forgot password
  • store / blog
  • stores
  • newsletter
  • store/newsletter
  • stores
  • stores any pages

Remember adding to future pages

@dvidsilva dvidsilva self-assigned this Feb 22, 2025
@dvidsilva
Copy link
Contributor Author

Image

The pages are read by social media correctly, with dynamic content and images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant