diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index e8a7a2b7e..08b65ad77 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -21,8 +21,6 @@ export interface Props { initialLoadingMessage?: string; permalink?: string; jsonLd?: Record[]; - categoryLevel0?: string; - categoryLevel1?: string; } const { @@ -36,15 +34,11 @@ const { jsonLd = [], redirectUrl = '', initialLoadingMessage = '', - categoryLevel0 = '', - categoryLevel1 = '', } = Astro.props; // Remove trailing slashes to consider the page as canonical const currentPageAbsoluteUrl = `https://roadmap.sh${permalink}`; - const canonicalUrl = givenCanonical || currentPageAbsoluteUrl; - const commitUrl = `https://github.com/kamranahmedse/developer-roadmap/commit/${ import.meta.env.GITHUB_SHA }`; @@ -160,10 +154,6 @@ const gaPageIdentifier = Astro.url.pathname client:load /> - - { categoryLevel0 && } - { categoryLevel1 && } - diff --git a/src/pages/[roadmapId]/[...topicId].astro b/src/pages/[roadmapId]/[...topicId].astro index 46b57b389..6884b5334 100644 --- a/src/pages/[roadmapId]/[...topicId].astro +++ b/src/pages/[roadmapId]/[...topicId].astro @@ -31,8 +31,6 @@ const { file, breadcrumbs, roadmapId, roadmap, heading } = Astro.props as Roadma description={`Free resources to learn ${heading} in ${roadmap.briefTitle}. Everything you need to know about ${heading} and how it relates to ${roadmap.briefTitle}.`} noIndex={true} permalink={`/${roadmapId}/${topicId}`} - categoryLevel0={roadmap.briefTitle} - categoryLevel1={heading} >
diff --git a/src/pages/[roadmapId]/index.astro b/src/pages/[roadmapId]/index.astro index 476ff48a4..ef99ea899 100644 --- a/src/pages/[roadmapId]/index.astro +++ b/src/pages/[roadmapId]/index.astro @@ -66,8 +66,6 @@ const contentContributionLink = `https://github.com/kamranahmedse/developer-road keywords={roadmapData.seo.keywords} noIndex={roadmapData.isUpcoming} jsonLd={jsonLdSchema} - categoryLevel0={'Roadmaps'} - categoryLevel1={roadmapData.briefTitle} >
diff --git a/src/pages/best-practices/[bestPracticeId]/index.astro b/src/pages/best-practices/[bestPracticeId]/index.astro index 4ff96a6cb..06addbc36 100644 --- a/src/pages/best-practices/[bestPracticeId]/index.astro +++ b/src/pages/best-practices/[bestPracticeId]/index.astro @@ -58,8 +58,6 @@ const contentContributionLink = `https://github.com/kamranahmedse/developer-road keywords={bestPracticeData.seo.keywords} noIndex={bestPracticeData.isUpcoming} jsonLd={jsonLdSchema} - categoryLevel0={"Best Practices"} - categoryLevel1={bestPracticeData.briefTitle} > diff --git a/src/pages/videos/[videoId].astro b/src/pages/videos/[videoId].astro index a350eaafb..801712252 100644 --- a/src/pages/videos/[videoId].astro +++ b/src/pages/videos/[videoId].astro @@ -24,8 +24,6 @@ const { video } = Astro.props; title={video.frontmatter.title} description={video.frontmatter.description} permalink={`/videos/${videoId}`} - categoryLevel0={"Videos"} - categoryLevel1={video.frontmatter.title} >