Skip to content

Commit 5123329

Browse files
committed
show recent posts
1 parent 1cac8a0 commit 5123329

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ <h2 class="wp-block-heading has-text-align-left">Check out our recent news &amp;
193193

194194

195195
<div class="wp-block-query is-layout-flow wp-block-query-is-layout-flow"><ul class="columns-3 wp-block-post-template is-layout-grid wp-container-core-post-template-is-layout-1 wp-block-post-template-is-layout-grid">
196-
{% for post in site.posts %}
196+
{% assign recent_posts = site.posts | slice: 0, 3 %}
197+
{% for post in recent_posts %}
197198
<li class="wp-block-post post type-post status-publish format-standard has-post-thumbnail hentry">
198199
<div class="wp-block-group is-layout-flow wp-block-group-is-layout-flow wp-container-core-group-is-layout-17"
199200
style="padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px">

0 commit comments

Comments
 (0)