Linked Questions

Popular Questions

How can I show just the most recent post on my home page with jekyll?

Asked by At
<ul class="entries">
  {% for post in paginator.posts %}
    <a href="{{ post.url }}">
    <h3>{{ post.title }}</h3>
    <p class="blogdate">{{ | date: "%d %B %Y" }}</p>
    <div>{{ post.content |truncatehtml | truncatewords: 60 }}</div>
  {% endfor %}

That shows all my posts, I just want to show the most recent.

Related Questions