diff --git a/src/components/GuideReadingTime.astro b/src/components/GuideReadingTime.astro index 45e10030..5889f633 100644 --- a/src/components/GuideReadingTime.astro +++ b/src/components/GuideReadingTime.astro @@ -3,11 +3,7 @@ import readingTime from 'reading-time'; import { getCollection } from 'astro:content'; import { Icon } from '@astrojs/starlight/components'; -export interface Props { - slug: string; -} - -const { slug } = Astro.props; +const slug = Astro.url.pathname.slice(1); const docs = await getCollection('docs'); let guideReadingTime = 0; diff --git a/src/content/docs/guide/contributing-to-open-source-projects/index.mdx b/src/content/docs/guide/contributing-to-open-source-projects/index.mdx index b9d8eac1..c100fc58 100644 --- a/src/content/docs/guide/contributing-to-open-source-projects/index.mdx +++ b/src/content/docs/guide/contributing-to-open-source-projects/index.mdx @@ -14,4 +14,4 @@ Whether you're a seasoned developer or just starting out, contributing to open-s --- - + diff --git a/src/content/docs/guide/creating-your-own-open-source-project/index.mdx b/src/content/docs/guide/creating-your-own-open-source-project/index.mdx index 8fc85ea5..48b5fe2d 100644 --- a/src/content/docs/guide/creating-your-own-open-source-project/index.mdx +++ b/src/content/docs/guide/creating-your-own-open-source-project/index.mdx @@ -16,4 +16,4 @@ By the end of this module, you will have the knowledge and skills necessary to c --- - + diff --git a/src/content/docs/guide/financing-open-source-projects/index.mdx b/src/content/docs/guide/financing-open-source-projects/index.mdx index 6ca49e06..2c9ea833 100644 --- a/src/content/docs/guide/financing-open-source-projects/index.mdx +++ b/src/content/docs/guide/financing-open-source-projects/index.mdx @@ -18,4 +18,4 @@ By the end of this module, you will have valuable insights into financing open-s --- - + diff --git a/src/content/docs/guide/getting-started-with-open-source/index.mdx b/src/content/docs/guide/getting-started-with-open-source/index.mdx index 564c3247..8a37a83a 100644 --- a/src/content/docs/guide/getting-started-with-open-source/index.mdx +++ b/src/content/docs/guide/getting-started-with-open-source/index.mdx @@ -12,4 +12,4 @@ In this chapter, we will explore the fundamentals of open source and how you can --- - + diff --git a/src/content/docs/guide/index.mdx b/src/content/docs/guide/index.mdx index f894f429..6d511823 100644 --- a/src/content/docs/guide/index.mdx +++ b/src/content/docs/guide/index.mdx @@ -12,4 +12,4 @@ Please note that this guide is always evolving as we are adding and modifying co --- - + diff --git a/src/content/docs/guide/maintaining-open-source-projects/index.mdx b/src/content/docs/guide/maintaining-open-source-projects/index.mdx index 9213b8a4..45e08d18 100644 --- a/src/content/docs/guide/maintaining-open-source-projects/index.mdx +++ b/src/content/docs/guide/maintaining-open-source-projects/index.mdx @@ -20,4 +20,4 @@ By delving into these challenges and providing practical insights, this module a --- - + diff --git a/src/content/docs/guide/promoting-open-source-projects/index.mdx b/src/content/docs/guide/promoting-open-source-projects/index.mdx index 00722807..a729e2a4 100644 --- a/src/content/docs/guide/promoting-open-source-projects/index.mdx +++ b/src/content/docs/guide/promoting-open-source-projects/index.mdx @@ -26,4 +26,4 @@ Remember, this module is a toolkit—pick what suits your project. Nothing is ma --- - + diff --git a/src/content/docs/guide/what-is-open-source/index.mdx b/src/content/docs/guide/what-is-open-source/index.mdx index 06991e88..84a0780b 100644 --- a/src/content/docs/guide/what-is-open-source/index.mdx +++ b/src/content/docs/guide/what-is-open-source/index.mdx @@ -14,4 +14,4 @@ To learn more about open source and its impact, explore the following chapters. --- - +