_layouts/blog.html in dev-portfolio-blog-0.1.3 vs _layouts/blog.html in dev-portfolio-blog-0.1.4

- old
+ new

@@ -1,19 +1,21 @@ --- layout: description title: Blog pagetype: blog -pagination: - enabled: true --- <!-- This loops through the paginated posts --> <ul> - {% for post in paginator.posts %} - <h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2> - <small>{{ post.date | date_to_string }}</small> - <p>{{ post.excerpt }}</p> - {% endfor %} + {% if paginator.total_posts == 0 %} + <p>No posts right now.</p> + {% else %} + {% for post in paginator.posts %} + <h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2> + <small>{{ post.date | date_to_string }}</small> + <p>{{ post.excerpt }}</p> + {% endfor %} + {% endif %} </ul> <hr> {% if paginator.total_pages > 1 %} <ul> @@ -26,6 +28,6 @@ <li> <a href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older</a> </li> {% endif %} </ul> -{% endif %} \ No newline at end of file +{% endif %}