diff --git a/src/components/MainNavigation.astro b/src/components/MainNavigation.astro new file mode 100644 index 0000000..c1769c4 --- /dev/null +++ b/src/components/MainNavigation.astro @@ -0,0 +1,28 @@ +--- +import navigation from '../data/navigation.json'; + +const currentPath = new URL(Astro.request.url).pathname; +--- + + diff --git a/src/data/navigation.json b/src/data/navigation.json new file mode 100644 index 0000000..7c5c807 --- /dev/null +++ b/src/data/navigation.json @@ -0,0 +1,18 @@ +[ + { + "title": "Home", + "url": "/" + }, + { + "title": "About", + "url": "/about/" + }, + { + "title": "Journal", + "url": "/journal/" + }, + { + "title": "Projects", + "url": "/projects/" + } +]