diff --git a/src/components/Footer.astro b/src/components/Footer.astro index ab763aa..f5b81e7 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -2,12 +2,13 @@
PeacockProject
- Open source · early days + Open source, built in the open. + The Project GitHub Wiki Community - Top ↑ + Back to top ↑
diff --git a/src/components/Header.astro b/src/components/Header.astro index a94e690..bc4f9c8 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -3,13 +3,15 @@ import Mark from './Mark.astro'; // The homepage's wordmark points at "#", every other page points home. const { homeHref = '/' } = Astro.props; +const path = Astro.url.pathname.replace(/\/+$/, '') || '/'; +const here = (p) => path === p || path.startsWith(p + '/'); ---
Peacock// OS