Limit number of blog posts on frontpage to 4 (#15266)

This commit is contained in:
Paulus Schoutsen 2020-10-16 11:36:01 +02:00 committed by GitHub
parent 6a9f58cea3
commit 5e0018688a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ description:
<div class="recent-posts material-card text"> <div class="recent-posts material-card text">
<h1>Recent Blog Posts</h1> <h1>Recent Blog Posts</h1>
{% for post in site.posts limit: 7 %} {% for post in site.posts limit: 4 %}
<li class="post"> <li class="post">
<a href="{{ post.url }}">{{ post.title }}</a> <a href="{{ post.url }}">{{ post.title }}</a>
<small class="blog-date">{{ post.date_formatted }}</small> <small class="blog-date">{{ post.date_formatted }}</small>