File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -161,22 +161,21 @@ <h1>News</h1>
161
161
</ ul >
162
162
163
163
< 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 >
167
166
< td >
168
167
{{ post.date | date: "%B " }}
169
168
{% assign day = post.date | date: "%-d" %}
170
169
{% 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,
174
173
{% else %}{{ day }}th
175
174
{% endcase %}
176
- {{ post.date | date: ", %Y" }}
177
- </ td >
175
+ {{ post.date | date: "%Y" }}
176
+ </ td > </ tr >
178
177
{% endfor %}
179
- </ ul >
178
+ </ table >
180
179
</ div >
181
180
182
181
< h2 > FAQ</ h2 >
You can’t perform that action at this time.
0 commit comments