Skip to content

Commit

Permalink
Debugging Navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
petrovicz committed Apr 4, 2024
1 parent 3099e6b commit 0de0515
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ const baseUrl = import.meta.env.BASE_URL;
const hrefHome = `${baseUrl}`;
const hrefSub = `${baseUrl}/subpage/`;
const currentPath = Astro.url.pathname;
console.log("");
console.log(`Current path is: ${currentPath}`);
console.log(`Home path is: ${hrefHome}`);
console.log(`Subpage path is: ${hrefSub}`);
---

<div class="navbar justify-around">
Expand Down

0 comments on commit 0de0515

Please sign in to comment.