This commit is contained in:
parent
eceb31a9ad
commit
e9b6035c58
48 changed files with 354 additions and 340 deletions
|
|
@ -10,8 +10,10 @@ import {
|
|||
getPublishedPosts,
|
||||
} from '../lib/site';
|
||||
|
||||
const LATEST_ARTICLES = 5;
|
||||
|
||||
const posts = await getPublishedPosts();
|
||||
const latestPosts = posts.slice(0, 5);
|
||||
const latestPosts = posts.slice(0, LATEST_ARTICLES);
|
||||
const projects = await getProjects();
|
||||
const selectedProjects = projects.filter((project) => project.data.selected);
|
||||
const tags = getAllTags(posts);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue