Skip to content

Commit

Permalink
top
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Dec 4, 2024
1 parent 5111658 commit a59e119
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/PostPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ const { page } = Astro.props
let delay = 0
const interval = 50
page.data[0].title = "📌 " + siteConfig.topBlog
---
<div class="transition flex flex-col rounded-[var(--radius-large)] bg-[var(--card-bg)] py-1 md:py-0 md:bg-transparent md:gap-4 mb-4">
{page.data.map((entry: {
Expand All @@ -24,11 +22,11 @@ page.data[0].title = "📌 " + siteConfig.topBlog
font: string
};
slug: string;
}) => {
}, idx) => {
return (
<PostCard
entry={entry}
title={entry.data.title}
title={idx == 0 ? "📌 " + entry.data.title : entry.data.title}
tags={entry.data.tags}
category={entry.data.category}
published={entry.data.published}
Expand Down

0 comments on commit a59e119

Please sign in to comment.