Lego2012
9/26/2016 - 9:21 PM

Localized Date: Version 2

Localized Date: Version 2

{% for post in site.posts %}
  <article class="{% if forloop.first %}first{% elsif forloop.last %}last{% else %}middle{% endif %}">
    <div class="article-head">
      <h2 class="title"><a href="/{{ post.url }}/" class="js-pjax">{{ post.title }}</a></h2>
      <p class="date">{{ post.date | date: "%b %d, %Y" }}</p>
    </div><!-- /.article-head -->
    
    <div class="article-content">
      {{ post.long_description }}
      <a href="/{{ post.url }}/" class="full-post-link js-pjax">Read more</a>
    </div><!-- /.article-content -->
  </article>
  {% if forloop.last %}{% else %}<div class="separater"></div>{% endif %}
{% endfor %}

<time datetime="{{ post.date | %Y-%m-%d %H:%M+01:00 }}">
    {{ post.date | date: "%d. %B %Y" | replace:"January","Januar" | replace:"February","Februar" | replace:"March","März" | replace:"May","Mai" | replace:"June","Juni" | replace:"July","Juli" | replace:"October","Oktober" | replace:"December","Dezember" }}
</time>