mirror of
https://github.com/10h30/jpadventure.git
synced 2026-05-12 15:21:19 +09:00
Refactor navigation: create Navigation component and update pages to use it
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<a href='/'>Home</a>
|
||||||
|
<a href='/about/'>About</a>
|
||||||
|
<a href='/blog/'>Blog</a>
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
import Navigation from "../components/Navigation.astro";
|
||||||
import "../styles/global.css";
|
import "../styles/global.css";
|
||||||
|
|
||||||
const pageTitle = "About Me";
|
const pageTitle = "About Me";
|
||||||
@@ -46,9 +47,7 @@ const textCase = "uppercase";
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<a href='/'>Home</a>
|
<Navigation />
|
||||||
<a href='/about/'>About</a>
|
|
||||||
<a href='/blog/'>Blog</a>
|
|
||||||
<h1>{pageTitle}</h1>
|
<h1>{pageTitle}</h1>
|
||||||
<h2>... and my new Astro site!</h2>
|
<h2>... and my new Astro site!</h2>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
import Navigation from "../components/Navigation.astro";
|
||||||
|
import "../styles/global.css";
|
||||||
---
|
---
|
||||||
|
|
||||||
<html lang='en'>
|
<html lang='en'>
|
||||||
@@ -11,9 +12,7 @@
|
|||||||
<title>About</title>
|
<title>About</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<a href='/'>Home</a>
|
<Navigation />
|
||||||
<a href='/about/'>About</a>
|
|
||||||
<a href='/blog/'>Blog</a>
|
|
||||||
<h1>My Astro Learning Blog</h1>
|
<h1>My Astro Learning Blog</h1>
|
||||||
<p>This is where I will post about my journey learning Astro.</p>
|
<p>This is where I will post about my journey learning Astro.</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
import Navigation from "../components/Navigation.astro";
|
||||||
|
import "../styles/global.css";
|
||||||
|
|
||||||
|
const pageTitle = "Thuan's Astro Page";
|
||||||
---
|
---
|
||||||
|
|
||||||
<html lang='en'>
|
<html lang='en'>
|
||||||
@@ -8,12 +11,10 @@
|
|||||||
<link rel='icon' type='image/svg+xml' href='/favicon.svg' />
|
<link rel='icon' type='image/svg+xml' href='/favicon.svg' />
|
||||||
<meta name='viewport' content='width=device-width' />
|
<meta name='viewport' content='width=device-width' />
|
||||||
<meta name='generator' content={Astro.generator} />
|
<meta name='generator' content={Astro.generator} />
|
||||||
<title>Astro</title>
|
<title>{pageTitle}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<a href='/'>Home</a>
|
<Navigation />
|
||||||
<a href='/about/'>About</a>
|
<h1>{pageTitle}</h1>
|
||||||
<a href='/blog/'>Blog</a>
|
|
||||||
<h1>Thuan's Astro Page</h1>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user