From 06d260ce07b64e818781b2261a31644a80cf2884 Mon Sep 17 00:00:00 2001 From: Daisuke Date: Wed, 15 Jan 2025 20:47:34 +0900 Subject: [PATCH] Added new post list --- src/components/Navigation.astro | 2 +- src/pages/index.astro | 41 +++++++++++++++++++++++++++++++-- src/styles/global.css | 2 +- 3 files changed, 41 insertions(+), 4 deletions(-) diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro index 6695ba2..81b8a76 100644 --- a/src/components/Navigation.astro +++ b/src/components/Navigation.astro @@ -4,7 +4,7 @@ diff --git a/src/pages/index.astro b/src/pages/index.astro index 445d41e..2249fd2 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,8 +1,45 @@ --- import BaseLayout from "../layouts/BaseLayout.astro"; -const pageTitle = "Naputo"; +import BlogPost from "../components/BlogPost.astro"; +import { getCollection } from "astro:content"; +const pageTitle = "Naputo 学びを形に"; +const allPosts = await getCollection("blog"); --- + -

アプトプットの場として、プログラミングや書評を共有します。

+

20代のエンジニアによる技術や書評のアウトプットブログ

+

新しい記事 一覧

+ +
diff --git a/src/styles/global.css b/src/styles/global.css index 7dac377..ff87103 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -89,4 +89,4 @@ html.dark { .dark .nav-links a { color: #fff; -} \ No newline at end of file +}