diff --git a/src/data/question-groups/backend/backend.md b/src/data/question-groups/backend/backend.md index d4442a3cb..06a04d500 100644 --- a/src/data/question-groups/backend/backend.md +++ b/src/data/question-groups/backend/backend.md @@ -10,6 +10,7 @@ date: 2024-05-24 seo: title: '50 Popular Backend Developer Interview Questions and Answers' description: 'Nail your backend developer interview with these 50 popularly asked questions and answers. Test your knowledge with our quiz cards!' + ogImageUrl: 'https://assets.roadmap.sh/guest/backend-developer-interview-questions-pm9jx.jpg' keywords: - 'backend quiz' - 'backend questions' diff --git a/src/data/question-groups/data-analyst/data-analyst.md b/src/data/question-groups/data-analyst/data-analyst.md index 6b3c31227..a6fae5965 100644 --- a/src/data/question-groups/data-analyst/data-analyst.md +++ b/src/data/question-groups/data-analyst/data-analyst.md @@ -10,6 +10,7 @@ date: 2025-04-21 seo: title: '50 Popular Data Analyst Interview Questions (+ Quiz!)' description: 'Get interview-ready with this essential list of data analyst interview questions, covering technical, analytical, and scenario-based Q&A.' + ogImageUrl: 'https://assets.roadmap.sh/guest/data-analyst-interview-questions-ontjt.jpg' keywords: - 'data analyst quiz' - 'data analyst questions' diff --git a/src/data/question-groups/devops/devops.md b/src/data/question-groups/devops/devops.md index 929654b32..ef6e48627 100644 --- a/src/data/question-groups/devops/devops.md +++ b/src/data/question-groups/devops/devops.md @@ -10,6 +10,7 @@ date: 2024-08-20 seo: title: 'Top 50 Popular DevOps Interview Questions (and Answers)' description: 'Get ready for your DevOps interview with 50 popular questions and answers that cover tools, pipelines, and key practices.' + ogImageUrl: 'https://assets.roadmap.sh/guest/devops-interview-questions-x6n2w.jpg' keywords: - 'devops quiz' - 'devops questions' diff --git a/src/data/question-groups/frontend/frontend.md b/src/data/question-groups/frontend/frontend.md index d3f634ecb..53547165d 100644 --- a/src/data/question-groups/frontend/frontend.md +++ b/src/data/question-groups/frontend/frontend.md @@ -12,6 +12,7 @@ relatedGuidesId: 'frontend' seo: title: 'Top 30 Popular Front End Developer Interview Questions' description: 'Nail your frontend developer interview with these 30 popularly asked questions and answers. Test your knowledge with our quiz cards!' + ogImageUrl: 'https://assets.roadmap.sh/guest/frontend-developer-interview-questions-ezbj6.jpg' keywords: - 'frontend quiz' - 'frontend questions' diff --git a/src/data/question-groups/full-stack/full-stack.md b/src/data/question-groups/full-stack/full-stack.md index 53d94025f..821adcfb9 100644 --- a/src/data/question-groups/full-stack/full-stack.md +++ b/src/data/question-groups/full-stack/full-stack.md @@ -10,6 +10,7 @@ date: 2025-01-29 seo: title: 'Top 50 Full Stack Developer Interview Questions' description: 'Ace your interview with our curated list of 50 full-stack developer interview questions, perfect for beginners and experienced candidates.' + ogImageUrl: 'https://assets.roadmap.sh/guest/full-stack-developer-interview-questions-baq90.jpg' keywords: - 'full-stack quiz' - 'full-stack questions' diff --git a/src/data/question-groups/javascript/javascript.md b/src/data/question-groups/javascript/javascript.md index 3d19692d7..bd3052471 100644 --- a/src/data/question-groups/javascript/javascript.md +++ b/src/data/question-groups/javascript/javascript.md @@ -8,6 +8,7 @@ isNew: false seo: title: 'JavaScript Questions' description: 'Curated list of JavaScript questions to test, rate and improve your knowledge. Questions are based on real world experience and knowledge.' + ogImageUrl: 'https://assets.roadmap.sh/guest/javascript-questions-x6n2w.jpg' keywords: - 'javascript quiz' - 'javascript questions' diff --git a/src/data/question-groups/nodejs/nodejs.md b/src/data/question-groups/nodejs/nodejs.md index 2177293ba..58b6785d1 100644 --- a/src/data/question-groups/nodejs/nodejs.md +++ b/src/data/question-groups/nodejs/nodejs.md @@ -8,6 +8,7 @@ isNew: false seo: title: 'Node.js Questions' description: 'Curated list of Node.js questions to test, rate and improve your knowledge. Questions are based on real world experience and knowledge.' + ogImageUrl: 'https://assets.roadmap.sh/guest/nodejs-questions-x6n2w.jpg' keywords: - 'node.js quiz' - 'node.js questions' diff --git a/src/data/question-groups/react/react.md b/src/data/question-groups/react/react.md index 0357528c3..fa19bdf28 100644 --- a/src/data/question-groups/react/react.md +++ b/src/data/question-groups/react/react.md @@ -8,6 +8,7 @@ isNew: false seo: title: 'React Questions' description: 'Curated list of React questions to test, rate and improve your knowledge. Questions are based on real world experience and knowledge.' + ogImageUrl: 'https://assets.roadmap.sh/guest/react-questions-x6n2w.jpg' keywords: - 'react quiz' - 'react questions' diff --git a/src/pages/questions/[questionGroupId].astro b/src/pages/questions/[questionGroupId].astro index 278d5a5bb..22850953f 100644 --- a/src/pages/questions/[questionGroupId].astro +++ b/src/pages/questions/[questionGroupId].astro @@ -19,6 +19,7 @@ export const prerender = true; export interface Props { questionGroup: QuestionGroupType; } + export async function getStaticPaths() { const questionGroups = await getAllQuestionGroups(); @@ -39,6 +40,7 @@ const { frontmatter } = questionGroup; briefTitle={frontmatter.briefTitle} description={frontmatter.seo.description} keywords={frontmatter.seo.keywords} + ogImageUrl={frontmatter.seo.ogImageUrl} permalink={`/questions/${questionGroup.id}`} > {