Skip to content

Commit

Permalink
chore: Small dir structure changes and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luigieai committed Feb 1, 2023
1 parent c5fef20 commit a85b86d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/SideBar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ul>
<!-- Sidebar content here -->
<li><a href="/">Home</a></li>
<li><a href="/blog/1">Blog</a></li>
<li><a href="/blog/">Blog</a></li>
<li><a href="/aboutme">About me</a></li>
<li><a href="/cv">CV</a></li>
</ul>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/blog/[...page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ const { page } = Astro.props;
title={post.data.title}
img={post.data.heroImage}
desc={post.data.description}
url={post.slug}
url={"/blog/post/" + post.slug}
target="_self"
/>
<div class="divider my-0"></div>

))}
</ul>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import { CollectionEntry, getCollection } from 'astro:content';
import { BlogSchema } from '../../content/config';
import PostLayout from '../../layouts/PostLayout.astro';
import { BlogSchema } from '../../../content/config';
import PostLayout from '../../../layouts/PostLayout.astro';
export async function getStaticPaths() {
const postEntries = await getCollection('blog');
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const last_posts = posts.slice(0, 3);
title={post.data.title}
img={post.data.heroImage}
desc={post.data.description}
url={post.slug}
url={"/blog/post/" + post.slug}
target="_self"
/>
<div class="divider my-0"></div>
Expand Down

0 comments on commit a85b86d

Please sign in to comment.