File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ exclude:
88
88
89
89
permalink : " /:path/"
90
90
91
- limit_posts : 3
92
-
93
91
collections :
94
92
articles :
95
93
output : true
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ <h2 class="post-list-heading">{{ page.list_title }}</h2>
10
10
{%- endif -%}
11
11
< ul class ="post-list ">
12
12
{%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%}
13
+ {% assign count = 0 %}
14
+ {% assign limit_posts = 3 %}
13
15
{%- for post in posts -%}
16
+ {%- if count < limit _posts -%}
14
17
< li >
15
18
< span class ="post-meta "> {{ post.date | date: date_format }}</ span >
16
19
< h3 >
22
25
{{ post.excerpt }}
23
26
{%- endif -%}
24
27
</ li >
28
+ {%- assign count = count | plus:1 -%}
29
+ {%- endif -%}
25
30
{%- endfor -%}
26
31
</ ul >
27
32
You can’t perform that action at this time.
0 commit comments