Skip to content

Commit 990b96c

Browse files
committed
feat: 夜中に活動しない
1 parent 7557300 commit 990b96c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

contents/articles/2025/05-13_newcomers-hackathon/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: ut.code(); 新歓ハッカソンを実施しました
3-
date: 2025-05-11
3+
date: 2025-05-11 20:00:00+09:00
44
author: ykobayashi
55

66
image: ./thumbnail.jpeg

docs/contents/article.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
- date: Date
1212
- **記事を書いた**日。
13+
- フォーマット:
14+
- yyyy-MM-dd (日付のみ)
15+
- yyyy-MM-dd hh:mm:ss+09:00 (日付+時間)
1316

1417
- author: string & keyof Member
1518
- 著者。

src/components/ArticleList.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ const articlesWithExcerpts = await Promise.all(
101101
/>
102102
<div class="mt-4 p-1">
103103
<time class="block text-sm text-gray-500">
104-
{format(article.data.date, "yyyy/MM/dd HH:mm")}
104+
{format(article.data.date, "yyyy/MM/dd HH:mm")
105+
// 夜中に活動しない
106+
.replace("00:00", "10:00")}
105107
</time>
106108
<h3 class="text-lg font-bold">{article.data.title}</h3>
107109
<p

0 commit comments

Comments
 (0)