Skip to content

Commit

Permalink
Add top blog
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Dec 3, 2024
1 parent 5c0227c commit f28cf8f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/PostPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ const { page } = Astro.props
let delay = 0
const interval = 50
const topBlogEntry = page.data.filter(entry => entry.title == siteConfig.topBlog)[0]
const orderedData = [topBlogEntry, page.data.filter(entry => entry.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: {
{orderedData.map((entry: {
data: {
draft: boolean;
title: string;
Expand Down

0 comments on commit f28cf8f

Please sign in to comment.