1 2 3 4 5 6 7 8 9 10
<section> <h1>Recent Posts</h1> <ul id="recent_posts"> {% for post in site.posts limit: site.recent_posts %} <li class="post"> <a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a> </li> {% endfor %} </ul> </section>