Skip to content

Commit

Permalink
add page titles
Browse files Browse the repository at this point in the history
  • Loading branch information
spcbfr committed Mar 26, 2024
1 parent e2769d2 commit 17e84b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/pages/notes/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ const notes = await db
const note = notes[0];
---

<BaseLayout title="x">
<BaseLayout
title={note.content.substring(0, 10) + "..."}
description={note.content}
>
<nav class="flex text-xl my-2 font-medium font-serif justify-between">
<Link href="/">home/</Link>
<Link href="/posts">posts/</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/notes/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import BaseLayout from "../../layouts/BaseLayout.astro";
import Link from "../../components/Link.astro";
---

<BaseLayout>
<BaseLayout title="notes!" description="Yusuf's note hub">
<nav class="flex text-xl my-2 font-medium font-serif justify-between">
<Link href="/">home/</Link>
<Link href="/posts">posts/</Link>
Expand Down

0 comments on commit 17e84b0

Please sign in to comment.