Thank you Kevin for the videos and the site! You have been super helpful to me. I have been setting up my blog following your videos and am setting up to display and index of posts on the homepage. However I was wondering if you knew of a way to display only the newest posts, say 5 or 6 posts?
<ul>
{% for post in site.posts %}
{% if forloop.index <= 5 %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% else %}
{% endif %}
{% endfor %}
</ul>
This is where I have gotten to but it only shows three posts even when I change the 5 to 10. If I change the 5 to 2 then it shows 2 posts.