Skip to content

Commit

Permalink
Bandaid fix paths (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysuzx authored Sep 5, 2024
1 parent 005e6f9 commit d531dc9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const { showHeader = true } = Astro.props;
<header>
<h1>indraynor's website</h1>
<nav>
<a href="/">Home</a>
<a href="/musings">Musings</a>
<a href="/website">Home</a>
<a href="/website/musings">Musings</a>
</nav>
</header>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/musings/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { musing } = Astro.props;
const { Content } = await musing.render();
---
<BaseLayout showHeader={false}>
<a href="/musings">&larr; Back to all musings</a>
<a href="/website/musings">&larr; Back to all musings</a>
<article>
<h1>{musing.data.title}</h1>
<time datetime={musing.data.date.toISOString()}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/musings/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const musings: CollectionEntry<'musings'>[] = await getCollection('musings');
<ul>
{musings.map((musing) => (
<li>
<a href={`/musings/${musing.slug}/`}>{musing.data.title}</a>
<a href={`/website/musings/${musing.slug}/`}>{musing.data.title}</a>
<time datetime={musing.data.date.toISOString()}>
{musing.data.date.toLocaleDateString()}
</time>
Expand Down

0 comments on commit d531dc9

Please sign in to comment.