Refactor navigation: create Navigation component and update pages to use it

This commit is contained in:
Thuan Bui
2025-12-22 17:55:26 +07:00
parent a383f01141
commit c3f6ddabb7
4 changed files with 18 additions and 12 deletions
+3 -4
View File
@@ -1,5 +1,6 @@
---
import Navigation from "../components/Navigation.astro";
import "../styles/global.css";
---
<html lang='en'>
@@ -11,9 +12,7 @@
<title>About</title>
</head>
<body>
<a href='/'>Home</a>
<a href='/about/'>About</a>
<a href='/blog/'>Blog</a>
<Navigation />
<h1>My Astro Learning Blog</h1>
<p>This is where I will post about my journey learning Astro.</p>
<ul>