---
layout: default
---
<header class="post-header">
	<h1 class="post-title">Posts</h1>
</header>

<div class="blog">
	{{ content }}
  	<ul class="post-list">
  	{% for post in site.posts %}
  		<li>
  			{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
  			<span class="post-meta">{{ post.date | date: date_format }}</span>
			<h2>
				<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
			</h2>
		</li>
		{% endfor %}
	</ul>
</div>
---
layout: default
---
<header class="post-header">
	<h1 class="post-title">Posts</h1>
</header>

<div class="blog">
	{{ content }}
	{% if site.posts.size == 0 %}
		<h2>No posts found.</h2>
	{% else %}
  		<ul class="post-list">
  		{% for post in site.posts %}
  			<li>
				<h2>
					<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
				</h2>
				{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
  				<span class="post-meta">{{ post.date | date: date_format }}</span>
			</li>
		{% endfor %}
		</ul>
	{% endif %}
</div>
Add message in case of no post
Add message in case of no post
