diff --git a/src/components/projects/IntroProjectsSection.astro b/src/components/projects/IntroProjectsSection.astro index 64d963b..f4471fd 100644 --- a/src/components/projects/IntroProjectsSection.astro +++ b/src/components/projects/IntroProjectsSection.astro @@ -12,7 +12,8 @@ interface Props { mainTitle: string; description?: string; } - +const currentPath = Astro.url.pathname; +console.log(currentPath); const { allPostsButton, mainTitle, description } = Astro.props; --- @@ -24,17 +25,46 @@ const { allPostsButton, mainTitle, description } = Astro.props;
{ allPostsButton && ( - -

All Projects

-
+ +
+ + <> + + + + +

All Projects

+
+
) } { - tags.map((tag) => ( - -

#{tag}

-
- )) + tags.map((tag) => + currentPath.includes(tag) ? ( + +

#{tag}

+
+ ) : ( + +

#{tag}

+
+ ), + ) }