Skip to content

Commit 27ec514

Browse files
committed
feat: お知らせページにトップページへ戻るリンクを追加
お知らせ一覧ページ (/news) に「トップページに戻る」リンクを追加。 投稿記事ページの「お知らせ一覧に戻る」と同じスタイルで実装。
1 parent 93d9bb3 commit 27ec514

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

news.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ hero_subtitle: "NEWS"
66

77
<div class="bg-white py-16 px-4">
88
<div class="max-w-6xl mx-auto">
9+
<!-- 戻るボタン -->
10+
<div class="mb-8">
11+
<a href="/" class="inline-flex items-center text-black hover:text-gray-700 font-bold">
12+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
13+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
14+
</svg>
15+
トップページに戻る
16+
</a>
17+
</div>
18+
919
{% assign news_posts = site.posts | where: "categories", "news" | sort: "date" | reverse %}
1020

1121
{% if news_posts.size > 0 %}

0 commit comments

Comments
 (0)