{publishDate} ~ {'TODO: READING TIME'}
diff --git a/TODO b/TODO index 6c42d35..83d17f8 100644 --- a/TODO +++ b/TODO @@ -1,8 +1,9 @@ [ ] Update README [ ] Install Fonts [ ] Style Code blocks -[ ] Highlight current navigation item +[x] Highlight current navigation item [ ] Use css variables [ ] Dark mode -[ ] Resize Logo +[x] Resize Logo [ ] Reading time +[x] Bio component diff --git a/src/components/Header.astro b/src/components/Header.astro index d95a500..b9951d8 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -2,7 +2,7 @@ import Logo from './Logo.astro' import Nav from './Nav.astro' -// TODO: Pass current page to Nav +const { current = '' } = Astro.props; --- diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 5e5761d..be6cd50 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -7,8 +7,9 @@ export interface Props { title: string; description: string; permalink: string; + current?: string; } -const { title, description, permalink } = Astro.props; +const { title, description, permalink, current } = Astro.props; ---
@@ -16,7 +17,7 @@ const { title, description, permalink } = Astro.props;{publishDate} ~ {'TODO: READING TIME'}