Skip to content

Commit 0ee7482

Browse files
committed
Use HTML list instead of <div>s
1 parent 635d45f commit 0ee7482

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

blog.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
---
44
<h2>Posts</h2>
55

6-
{% for post in site.categories.blog %}
7-
<div class="post">
8-
<div class="post-date">{{ post.date | date: "%b %-d, %Y" }}</div>
9-
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
10-
</div>
11-
{% endfor %}
6+
<ul class="post-list">
7+
{% for post in site.categories.blog %}
8+
<li class="post">
9+
<div class="post-date">{{ post.date | date: "%b %-d, %Y" }}</div>
10+
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
11+
</li>
12+
{% endfor %}
13+
</ul>

css/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ a.source:hover {
152152
list-style: none;
153153
}
154154

155+
.post-list {
156+
margin: 0;
157+
padding: 0;
158+
list-style-type: none;
159+
}
155160

156161
.post {
157162
margin: 0 0 1.5rem 0;

thisweek.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
---
44
<h2>This Week In rust-analyzer</h2>
55

6-
{% for post in site.categories.thisweek %}
7-
<div class="post">
8-
<div class="post-date">{{ post.date | date: "%b %-d, %Y" }}</div>
9-
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
10-
</div>
11-
{% endfor %}
6+
<ul class="post-list">
7+
{% for post in site.categories.thisweek %}
8+
<li class="post">
9+
<div class="post-date">{{ post.date | date: "%b %-d, %Y" }}</div>
10+
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
11+
</li>
12+
{% endfor %}
13+
</ul>

0 commit comments

Comments
 (0)