This commit is contained in:
parent
eceb31a9ad
commit
e9b6035c58
48 changed files with 354 additions and 340 deletions
|
|
@ -3,8 +3,10 @@ import ArticleList from '../components/ArticleList.astro';
|
|||
import Page from '../layouts/Page.astro';
|
||||
import { getPublishedPosts } from '../lib/site';
|
||||
|
||||
const RECENT_ARTICLES = 5;
|
||||
|
||||
const posts = await getPublishedPosts();
|
||||
const recent = posts.slice(0, 5);
|
||||
const recent = posts.slice(0, RECENT_ARTICLES);
|
||||
---
|
||||
|
||||
<Page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue