diff --git a/src/components/ArticleCard.astro b/src/components/ArticleCard.astro index 3d0d726..f88dfa3 100644 --- a/src/components/ArticleCard.astro +++ b/src/components/ArticleCard.astro @@ -12,26 +12,12 @@ const {title, image, createdAt, url, tags, isFirst} = Astro.props; ---
- - {title} -

{title}

-
- { - tags.map((tag) => ( - - )) - } -

{createdAt.slice(0, 10).replaceAll("-", "/")}

diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index e7a1072..2770f55 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -9,10 +9,10 @@ interface Props { const {title, description} = Astro.props; --- - - - - + + + + - - - - + + + + {title} - - - - - + + + + + diff --git a/src/pages/index.astro b/src/pages/index.astro index 389660c..b629468 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -4,7 +4,7 @@ import {SITE_DESCRIPTION, SITE_TITLE} from '../consts'; import DefaultLayout from '../layouts/Default.astro'; const allPosts = await Astro.glob('../pages/posts/*.md'); // status がpublish の記事のみ表示する -const filteredPosts = allPosts.filter((e) => e.frontmatter.status === 'published'); +const filteredPosts = allPosts.filter((e) => e.frontmatter.status === 'published').reverse(); ---