File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,17 @@ permalink: /news
7
7
<span class =" block mt-5 text-2xl " >NEWS</span >
8
8
</h2 >
9
9
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] " >
11
11
{% assign news = site.posts | where: "categories", "news" %}
12
12
{% 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 >
17
22
{% endfor %}
18
- </div >
23
+ </ul >
You can’t perform that action at this time.
0 commit comments