Skip to content

Commit 7c23d6e

Browse files
committed
Split as link
1 parent 97fb10e commit 7c23d6e

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

content/news/2025-10-27_corporate-site-launch.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: "コーポレートサイトを開設しました"
33
date: 2025-10-27
44
slug: "corporate-site-launch"
5+
blog: "/blog/2025-10-27_corporate-site-launch/"
56
draft: false
67
---
78

content/news/2025-12-24_development-progress.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: "ブログを更新しました"
33
date: 2025-12-24
44
slug: "2025-12-24-development-progress"
5+
blog: "/blog/2025-12-24_development-progress/"
56
draft: false
67
---
78

content/news/2026-02-02_hokudai-startup.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: "北大発認定スタートアップ企業に認定されました"
33
date: 2026-02-02
44
slug: "hokudai-startup"
5+
blog: "/blog/2026-02-02_hokudai-startup/"
56
draft: false
67
---
78

layouts/index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,12 @@ <h2 class="text-2xl font-bold text-slate-800">お知らせ</h2>
8282
<div class="bg-white rounded border border-gray-200 overflow-hidden">
8383
<div class="max-h-[11rem] overflow-y-auto divide-y divide-gray-100">
8484
{{ range first 5 (where .Site.RegularPages "Section" "news") }}
85-
<a href="/news/#{{ .Params.slug }}" class="flex items-center gap-4 px-4 py-3 hover:bg-gray-50 transition">
86-
<time class="text-base text-gray-500 shrink-0 w-32">{{ .Date.Format "2006年1月2日" }}</time>
87-
<h3 class="text-base text-slate-800">{{ .Title }}</h3>
88-
</a>
85+
<div class="flex items-center px-4 py-3">
86+
<time class="text-base text-gray-500 shrink-0 w-36">{{ .Date.Format "2006年1月2日" }}</time>
87+
<p class="text-base text-slate-800">{{ .Title }}
88+
{{ with .Params.blog }} <a href="{{ . }}" class="text-sm text-blue-600 hover:text-blue-800">ブログ記事</a>{{ end }}
89+
</p>
90+
</div>
8991
{{ end }}
9092
</div>
9193
</div>

0 commit comments

Comments
 (0)