---
layout: default
---
{% assign posts_count = paginator.posts | size %}

<div class="home">
  {% if posts_count > 0 %}
  <div class="posts" id="search-container">

    {% for post in paginator.posts %}
    <div class="post py3">
      <p class="post-meta">{{ post.date | date: site.date_format }}</p>
      <a href="{{ post.url | prepend: site.baseurl }}" class="post-link">
        <h3 class="h1 post-title">{{ post.title }}</h3>
      </a>
      <span class="post-summary">
        {% if post.cover %}
        <a href="{{ post.url | prepend: site.baseurl }}">
          <img src="{{ post.cover }}" />
        </a>
        {% endif %}

        {% if post.summary %}
        {{ post.summary }}
        {% else %}
        {{ post.excerpt }}
        {% endif %}
      </span>
    </div>
    {% endfor %}
  </div>

  {% include pagination.html %}
  {% else %}
  <h1 class='center'>{{ site.text.index.coming_soon }}</h1>
  {% endif %}
</div>
---
layout: default
---
{% assign posts_count = paginator.posts | size %}

<div class="home">
  {% if posts_count > 0 %}
  <div class="posts" id="search-container">

    {% for post in paginator.posts %}
    <div class="post py3">
      <p class="post-meta">{{ post.date | date: site.date_format }}</p>
      <a href="{{ post.url | prepend: site.baseurl }}" class="post-link">
        <h3 class="h1 post-title">{{ post.title }}</h3>
      </a>
      <span class="post-meta small">
        {% for category in post.categories %}
          <a href="{{ site.url }}/{{ category }}" class="post-link">#{{ category }}</a> 
        {% endfor %}
      </span>
      <span class="post-summary">
        {% if post.cover %}
        <a href="{{ post.url | prepend: site.baseurl }}">
          <img src="{{ post.cover }}" />
        </a>
        {% endif %}

        {% if post.summary %}
        {{ post.summary }}
        {% else %}
        {{ post.excerpt }}
        {% endif %}
      </span>
    </div>
    {% endfor %}
  </div>

  {% include pagination.html %}
  {% else %}
  <h1 class='center'>{{ site.text.index.coming_soon }}</h1>
  {% endif %}
</div>
Add categories for posts on homepage
Add categories for posts on homepage
