Skip to content

Commit

Permalink
💄 put posts first
Browse files Browse the repository at this point in the history
  • Loading branch information
dvjn committed Jul 28, 2024
1 parent 00ac48a commit 49ce55e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const { page } = Astro.props;
aria-label="dvjn"></path>
</svg>
</a>
<a href="/projects" class:list={[{ active: page == Pages.Projects }]}>Projects</a>
<a href="/posts" class:list={[{ active: page == Pages.Posts }]}>Posts</a>
<a href="/projects" class:list={[{ active: page == Pages.Projects }]}>Projects</a>
</div>

<div class="right">
Expand Down
12 changes: 6 additions & 6 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ import PostsList from "@components/PostsList.astro";
</p>
</Header>

<Section>
<Fragment slot="title">Posts</Fragment>
<PostsList />
<ShowMore url="/posts" />
</Section>

<Section>
<Fragment slot="title">Projects</Fragment>
<Grid>
{projects.slice(0, 4).map((project) => <ProjectCard project={project} />)}
</Grid>
<ShowMore url="/projects" />
</Section>

<Section>
<Fragment slot="title">Posts</Fragment>
<PostsList />
<ShowMore url="/projects" />
</Section>
</BaseLayout>

0 comments on commit 49ce55e

Please sign in to comment.