Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee6ee0e

Browse files
committed
[FOLD]
1 parent 232d5c7 commit ee6ee0e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

index.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,22 +161,21 @@ <h1>News</h1>
161161
</ul>
162162

163163
<table class="posts">
164-
{% for post in site.posts %}
165-
<tr>
166-
<td><p><a href="{{ post.url }}">{{ post.title }}</a></p><p>{{ post.excerpt }}</p></td>
164+
{%- for post in site.posts limit: 8 -%}
165+
<tr><td><p><a href="{{ post.url }}">{{ post.title }}</a></p><p>{{ post.excerpt }}</p></td>
167166
<td>
168167
{{ post.date | date: "%B " }}
169168
{% assign day = post.date | date: "%-d" %}
170169
{% case day %}
171-
{% when '1' or '21' or '31' %}{{ day }}st
172-
{% when '2' or '22' %}{{ day }}nd
173-
{% when '3' or '23' %}{{ day }}rd
170+
{% when '1' or '21' or '31' %}{{ day }}st,
171+
{% when '2' or '22' %}{{ day }}nd,
172+
{% when '3' or '23' %}{{ day }}rd,
174173
{% else %}{{ day }}th
175174
{% endcase %}
176-
{{ post.date | date: ", %Y" }}
177-
</td>
175+
{{ post.date | date: "%Y" }}
176+
</td></tr>
178177
{% endfor %}
179-
</ul>
178+
</table>
180179
</div>
181180

182181
<h2>FAQ</h2>

0 commit comments

Comments
 (0)