diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 8b0f050dc..5fc8c78e1 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -16,6 +16,7 @@ export interface Props { noIndex?: boolean; permalink?: string; sponsor?: SponsorType; + jsonLd?: Record; } const { @@ -25,14 +26,13 @@ const { noIndex = false, permalink = '', sponsor, + jsonLd, } = Astro.props; // Remove trailing slashes to consider the page as canonical const currentPageAbsoluteUrl = `https://roadmap.sh${permalink}`; -const commitUrl = `https://github.com/kamranahmedse/developer-roadmap/commit/${ - import.meta.env.GITHUB_SHA -}`; +const commitUrl = `https://github.com/kamranahmedse/developer-roadmap/commit/${import.meta.env.GITHUB_SHA}`; --- @@ -69,43 +69,23 @@ const commitUrl = `https://github.com/kamranahmedse/developer-roadmap/commit/${ - + - + - - - + + + + {jsonLd &&