layout: default


<div class=“home”>

{{ content }}

{% capture site_lang %}{{ site.lang | default: "en" }}{% endcapture %}

<ul class="post-list">
  {% for post in paginator.posts %}
    {% capture post_lang %}{{ post.lang | default: site_lang }}{% endcapture %}
    {% capture lang %}{% if post_lang != site_lang %}{{ post_lang }}{% endif %}{% endcapture %}

    <li{% if lang != empty %} lang="{{ lang }}"{% endif %}>
      <header class="post-header">
        <h1 class="post-title">
          <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}{% if post.external-url %} &rarr;{% endif %}</a>
        </h1>

        <p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</p>
      </header>

      <div class="post-content">
        {{ post.excerpt }}
      </div>
      {% if post.content contains site.excerpt_separator %}
        <p class="post-continue">
          <a href="{{ post.url | relative_url }}">Read the post &rarr;</a>
        </p>
      {% endif %}
    </li>
  {% endfor %}
</ul>

{% include pagination.html %}

</div>