Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (12 sloc) 329 Bytes
<% if (site.posts.length){ %>
<div class="widget tag">
<h3 class="title"><%= __('recent_posts') %></h3>
<ul class="entry">
<% site.posts.sort('date', -1).limit(5).each(function(post){ %>
<li>
<a href="<%= config.root %><%= post.path %>"><%= post.title %></a>
</li>
<% }); %>
</ul>
</div>
<% } %>