Customisable homepage limit posts
This commit is contained in:
@@ -3,12 +3,12 @@ layout: default
|
||||
home: true
|
||||
---
|
||||
|
||||
<h4 class="posts-item-note">Recent Posts</h4>
|
||||
{% for post in site.posts %}
|
||||
<h3 class="posts-item-note" aria-label="Recent Posts">Recent Posts</h3>
|
||||
{%- for post in site.posts limit: site.number_of_posts -%}
|
||||
<article class="post-item">
|
||||
<span class="post-item-date">{{ post.date | date: "%b %d, %Y" }}</span>
|
||||
<h4 class="post-item-title">
|
||||
<a href="{{ post.url }}">{{ post.title | escape }}</a>
|
||||
</h4>
|
||||
</article>
|
||||
{% endfor %}
|
||||
{%- endfor -%}
|
||||
|
||||
Reference in New Issue
Block a user