fix: remove guide id

feat/open-graph
Arik Chakma 9 months ago
parent 36e8e6051b
commit 57d86542e0
  1. 1
      src/lib/open-graph.ts
  2. 2
      src/pages/backend/developer-skills.astro
  3. 2
      src/pages/backend/languages.astro
  4. 2
      src/pages/guides/[guideId].astro

@ -2,7 +2,6 @@ type RoadmapOpenGraphQuery = {
type: 'roadmaps' | 'guides' | 'best-practices'; type: 'roadmaps' | 'guides' | 'best-practices';
variant?: 'default' | 'image'; variant?: 'default' | 'image';
resourceId?: string; resourceId?: string;
guideId?: string;
}; };
export function getOpenGraphImageUrl(params: RoadmapOpenGraphQuery) { export function getOpenGraphImageUrl(params: RoadmapOpenGraphQuery) {

@ -12,7 +12,7 @@ const { frontmatter: guideData } = guide!;
const ogImageUrl = getOpenGraphImageUrl({ const ogImageUrl = getOpenGraphImageUrl({
type: 'guides', type: 'guides',
guideId, resourceId: guideId,
}); });
--- ---

@ -12,7 +12,7 @@ const { frontmatter: guideData } = guide!;
const ogImageUrl = getOpenGraphImageUrl({ const ogImageUrl = getOpenGraphImageUrl({
type: 'guides', type: 'guides',
guideId, resourceId: guideId,
}); });
--- ---

@ -26,7 +26,7 @@ const { frontmatter: guideData, author } = guide;
const ogImageUrl = getOpenGraphImageUrl({ const ogImageUrl = getOpenGraphImageUrl({
type: 'guides', type: 'guides',
guideId, resourceId: guideId,
}); });
--- ---

Loading…
Cancel
Save