diff --git a/config.js b/config.js index 50b50655..92152862 100644 --- a/config.js +++ b/config.js @@ -19,7 +19,7 @@ module.exports = { rss: '/feed.xml', jsonfeed: '/feed.json', typekitID: 'msu4qap', - itemsPerPage: 26, + itemsPerPage: 24, repoContentPath: 'https://github.com/kremalicious/blog/tree/main/content', menu: [ { diff --git a/src/components/molecules/PostTeaser.module.scss b/src/components/molecules/PostTeaser.module.scss index 97f08899..7cb038dc 100644 --- a/src/components/molecules/PostTeaser.module.scss +++ b/src/components/molecules/PostTeaser.module.scss @@ -4,10 +4,11 @@ .title { padding-left: 0.2rem; padding-right: 0.2rem; - margin-top: $spacer / 3; + margin-top: $spacer / 2; margin-bottom: 0; font-size: $font-size-base; transition: color 0.2s ease-out; + color: $text-color-light; } .post { diff --git a/src/pages/index.module.scss b/src/pages/index.module.scss index cf7c413a..20b9a574 100644 --- a/src/pages/index.module.scss +++ b/src/pages/index.module.scss @@ -45,14 +45,3 @@ grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } } - -.title { - composes: pagetitle from '../components/templates/Page.module.scss'; - margin-left: 0; - margin-right: 0; - - a { - margin: 0; - color: $text-color-light; - } -} diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 08f5c92b..f07ba6b3 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -12,36 +12,32 @@ export default function Home({ data }: PageProps): ReactElement { <> - - Latest Articles All Articles - - {(data as any).latestArticles.edges - .slice(0, 2) + .slice(0, 4) .map(({ node }: { node: Post }) => ( ))} {(data as any).latestArticles.edges - .slice(2, 8) + .slice(4, 7) .map(({ node }: { node: Post }) => ( ))} + + All Articles - - Latest Photos All Photos - - {(data as any).latestPhotos.edges.map(({ node }: { node: Post }) => ( ))} + + All Photos > )