Skip to content

Commit e2d8cfa

Browse files
committed
一覧の表示を調整
1 parent af89d8b commit e2d8cfa

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

_pages/news.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ permalink: /news
77
<span class="block mt-5 text-2xl">NEWS</span>
88
</h2>
99

10-
<div class="max-w-248 mx-auto px-8 flex flex-wrap *:w-full gap-y-8 justify-between">
10+
<ul class="max-w-248 mx-auto px-8 flex flex-wrap *:w-full justify-between divide-y divide-[#ccc]">
1111
{% assign news = site.posts | where: "categories", "news" %}
1212
{% for post in news %}
13-
<a href="{{ post.url }}">
14-
<time class="text-sm text-gray-600">{{ post.date | date:"%Y.%-m.%-d" }}</time>
15-
<p><strong>{{ post.title }}</strong></p>
16-
</a>
13+
<li class="py-4">
14+
<a href="{{ post.url }}">
15+
<div class="flex gap-x-2">
16+
<time class="text-sm text-gray-600">{{ post.date | date:"%Y.%-m.%-d" }}</time>
17+
<span class="block min-w-24 text-center px-4 py-px rounded-xs bg-[#cc8f2e] text-white">{{ post.tags }}</span>
18+
</div>
19+
<p>{{ post.title }}</p>
20+
</a>
21+
</li>
1722
{% endfor %}
18-
</div>
23+
</ul>

0 commit comments

Comments
 (0)