Professional Documents
Culture Documents
Active Lesson 57 - Implement Metadata For Seo: It'S Time To Shine in The Search Engine Spotlight
Active Lesson 57 - Implement Metadata For Seo: It'S Time To Shine in The Search Engine Spotlight
Task 🎯
Your task is to add the necessary Meta Data for each of the pages of the
application for better performant SEO.
Test 🧪
Use Hey Meta to test the meta information of your site.
Resources 📖
Next.js MetaData API
Hint 💡
Need some clear steps? Here we go:
Go to the page for which you would like to add its Metadata
🙈
At the top of the page, below important and above
component definition, export a metadata object:
That's just an example with basic info but you can (and should)
extend it to many layers by adding images, Twitter card images,
or any other social media badge. And that too just by extending
the above object, i.e., metadata
An example of metadata,
🙈
14 type: 'website',
15 },
16 robots: {
17 index: true,
18 follow: true,
19 googleBot: {
20 index: true,
21 follow: true,
22 'max-video-preview': -1,
23 'max-image-preview': 'large',
24 'max-snippet': -1,
25 },
26 },
27 twitter: {
28 title: 'Lee Robinson',
29 card: 'summary_large_image',
30 },
31 verification: {
32 google: 'eZSdmzAXlLkKhNJzfgwDqWORghxnJ8qR9_CHd
33 yandex: '14d2e73487fa6c71',
34 },
35 };
Did you make it into the search engine spotlight? 😉
Next Module