--- layout: default --- <div class="home"> <h1 class="page-heading">Posts</h1> <ul class="post-list"> {% for post in paginator.posts %} <li> <h2> <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a> </h2> <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span> <p class="description"> {% if post.description %} {{ post.description | strip_html | collapse_whitespace | truncate: 250 }} {% else %} {{ post.content | strip_html | collapse_whitespace | truncate: 250 }} {% endif %}</p> </li> {% endfor %} </ul> </div> {% if paginator.total_pages > 1 %}<!-- Pagination links --> <div class="pagination"> {% if paginator.previous_page %} <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="prev">Newer Posts</a> {% endif %} {% if paginator.next_page %} <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="next">Older Posts</a>{% endif %} </div>{% endif %}