From 57d86542e0d6508f9cc923e970ec7880e192b093 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Thu, 14 Mar 2024 22:39:07 +0600 Subject: [PATCH] fix: remove guide id --- src/lib/open-graph.ts | 1 - src/pages/backend/developer-skills.astro | 2 +- src/pages/backend/languages.astro | 2 +- src/pages/guides/[guideId].astro | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/open-graph.ts b/src/lib/open-graph.ts index 432995843..959869c49 100644 --- a/src/lib/open-graph.ts +++ b/src/lib/open-graph.ts @@ -2,7 +2,6 @@ type RoadmapOpenGraphQuery = { type: 'roadmaps' | 'guides' | 'best-practices'; variant?: 'default' | 'image'; resourceId?: string; - guideId?: string; }; export function getOpenGraphImageUrl(params: RoadmapOpenGraphQuery) { diff --git a/src/pages/backend/developer-skills.astro b/src/pages/backend/developer-skills.astro index 22d707d21..cd6fd94df 100644 --- a/src/pages/backend/developer-skills.astro +++ b/src/pages/backend/developer-skills.astro @@ -12,7 +12,7 @@ const { frontmatter: guideData } = guide!; const ogImageUrl = getOpenGraphImageUrl({ type: 'guides', - guideId, + resourceId: guideId, }); --- diff --git a/src/pages/backend/languages.astro b/src/pages/backend/languages.astro index 0dbb79e6d..7d7eade12 100644 --- a/src/pages/backend/languages.astro +++ b/src/pages/backend/languages.astro @@ -12,7 +12,7 @@ const { frontmatter: guideData } = guide!; const ogImageUrl = getOpenGraphImageUrl({ type: 'guides', - guideId, + resourceId: guideId, }); --- diff --git a/src/pages/guides/[guideId].astro b/src/pages/guides/[guideId].astro index a572e9b1d..5b1a34931 100644 --- a/src/pages/guides/[guideId].astro +++ b/src/pages/guides/[guideId].astro @@ -26,7 +26,7 @@ const { frontmatter: guideData, author } = guide; const ogImageUrl = getOpenGraphImageUrl({ type: 'guides', - guideId, + resourceId: guideId, }); ---