Skip to content

Commit 37fb4ab

Browse files
committed
update pages
1 parent d230c7e commit 37fb4ab

File tree

3 files changed

+12
-23
lines changed

3 files changed

+12
-23
lines changed

src/pages/about.astro

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
const pageTitle = "About Me";
23
---
34

45
<html lang="en">
@@ -7,16 +8,14 @@
78
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
89
<meta name="viewport" content="width=device-width" />
910
<meta name="generator" content={Astro.generator} >
10-
<title>Astro</title>
11+
<title>{pageTitle}</title>
1112
</head>
1213
<body>
13-
<h1>My Astro Site</h1>
14-
1514
<a href="/">Home</a>
1615
<a href="/about/">About</a>
1716
<a href="/blog/">Blog</a>
1817

19-
<h1>About Me</h1>
18+
<h1>{pageTitle}</h1>
2019
<h2>... and my new Astro site!</h2>
2120

2221
<p>I am working through Astro's introductory tutorial. This is the second page on my website, and it's the first one I built myself!</p>

src/pages/blog.astro

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2+
const pageTitle = "My Astro Learning Blog";
23
---
34

45
<html lang="en">
56
<head>
6-
<meta charset="utf-8"/>
7+
<meta charset="utf-8" />
8+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
79
<meta name="viewport" content="width=device-width" />
8-
<title>Astro</title>
10+
<meta name="generator" content={Astro.generator} >
11+
<title>{pageTitle}</title>
912
</head>
1013
<body>
1114
<a href="/">Home</a>
1215
<a href="/about/">About</a>
1316
<a href="/blog/">Blog</a>
1417

15-
<h1>My Astro Learning Blog</h1>
18+
<h1>{pageTitle}</h1>
1619
<p>This is where I will post about my journey learning Astro.</p>
1720
<ul>
1821
<li><a href="/posts/post-1/">Post 1</a></li>

src/pages/index.astro

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
<!-- ---
2-
import Welcome from '../components/Welcome.astro';
3-
import Layout from '../layouts/Layout.astro';
4-
5-
// Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build
6-
// Don't want to use any of this? Delete everything in this file, the `assets`, `components`, and `layouts` directories, and start fresh.
7-
---
8-
9-
<Layout>
10-
<Welcome />
11-
</Layout> -->
12-
131
---
2+
const pageTitle = "Home Page";
143
---
154

165
<html lang="en">
@@ -19,15 +8,13 @@ import Layout from '../layouts/Layout.astro';
198
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
209
<meta name="viewport" content="width=device-width" />
2110
<meta name="generator" content={Astro.generator} >
22-
<title>Astro</title>
11+
<title>{pageTitle}</title>
2312
</head>
2413
<body>
25-
<h1>Astro</h1>
26-
2714
<a href="/">Home</a>
2815
<a href="/about/">About</a>
2916
<a href="/blog/">Blog</a>
3017

31-
<h1>My Astro Site</h1>
18+
<h1>{pageTitle}</h1>
3219
</body>
3320
</html>

0 commit comments

Comments
 (0)