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 f28cf8f commit 3f23e06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ A static blog template built with [Astro](https://astro.build).
- [x] Ubuntu (Default global font)

### Top Blog



## 🚀 How to Use

1. [Generate a new repository](https://github.com/saicaca/fuwari/generate) from this template or fork this repository.
Expand Down
4 changes: 1 addition & 3 deletions src/components/PostPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ 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)]
const orderedData = [topBlogEntry].concat(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">
Expand Down

0 comments on commit 3f23e06

Please sign in to comment.