jrgnsn.net/_includes/widget-recent-posts.html -rw-r--r-- 296 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{^is "index"}}
<hr />

<h3>Recent Posts</h3>
<div class="recent-posts">
  {% for post in site.posts limit:3 %}
  <div class="post-stub">
    {{ post.date || date: "%Y-%m-%d" }}
    <a class="recent-post-link" href="{{ post.url }}">
      {{ post.title }}
    </a>
  </div>
  {% endfor %}
</div>