So, you have the last question with the latest posts.
{% for post in site.posts limit:5 %}
<li>
< a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
However, this also shows the current one, if this is one of the last 5 messages. I tried to include an if statement that checks the URL, but how can I add +1 to the limit variable?
PS: I included a space in the anchor tag so that it can be read as code
source
share