Skip to content

Commit ce05679

Browse files
committed
refactor: update page titles
1 parent e16778b commit ce05679

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/layouts/PostLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface Props {
1010
const { post } = Astro.props;
1111
---
1212

13-
<BaseLayout title={post.data.title}>
13+
<BaseLayout title={`milan-codes - ${post.data.title}`}>
1414
<link
1515
rel="stylesheet"
1616
href="https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.css"

src/pages/404.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import PageNotFound from "../components/PageNotFound.astro";
33
import BaseLayout from "../layouts/BaseLayout.astro";
44
---
55

6-
<BaseLayout title="404 Not Found">
6+
<BaseLayout title="milan-codes - 404">
77
<PageNotFound />
88
</BaseLayout>

src/pages/blog/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const orderedPosts = posts.sort((a, b) => {
1414
const tags = [...new Set(posts.map((post) => post.data.tags).flat())];
1515
---
1616

17-
<BaseLayout title="Milán Herke - Blog">
17+
<BaseLayout title="milan-codes - blog">
1818
<Navbar />
1919
<h1 class="mt-4 mb-1 text-gray-900 lowercase dark:text-gray-100">Posts</h1>
2020
<Tags tags={tags} />

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const announcements = await getCollection(
1919
);
2020
---
2121

22-
<BaseLayout title="Milán Herke - Software engineer">
22+
<BaseLayout title="milan-codes - home">
2323
<Navbar />
2424
<About />
2525
<LatestBlogPost post={orderedPosts[0]} />

src/pages/tags/[tag].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const allPosts = await getCollection(
2323
);
2424
---
2525

26-
<BaseLayout title="Milán Herke - Blog">
26+
<BaseLayout title={`milan-codes - posts tagged with ${tag}`}>
2727
<Navbar />
2828
<h1 class="mt-4 mb-6 text-gray-900 lowercase dark:text-gray-100">
2929
Posts tagged with {tag}

src/pages/tags/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const allPosts = await getCollection("blog");
88
const tags = [...new Set(allPosts.map((post) => post.data.tags).flat())];
99
---
1010

11-
<BaseLayout title="Tags">
11+
<BaseLayout title="milan-codes - tags">
1212
<Navbar />
1313
<Tags tags={tags} />
1414
</BaseLayout>

0 commit comments

Comments
 (0)