diff --git a/src/pages/index.tsx b/src/pages/index.tsx index f07ba6b3..76e4c75f 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -14,14 +14,14 @@ export default function Home({ data }: PageProps): ReactElement {
{(data as any).latestArticles.edges - .slice(0, 4) + .slice(0, 2) .map(({ node }: { node: Post }) => ( ))}
{(data as any).latestArticles.edges - .slice(4, 7) + .slice(2, 5) .map(({ node }: { node: Post }) => ( ))} @@ -48,7 +48,7 @@ export const homeQuery = graphql` latestArticles: allMarkdownRemark( filter: { fields: { type: { ne: "photo" } } } sort: { order: DESC, fields: [fields___date] } - limit: 8 + limit: 5 ) { edges { node {