~euandreh/website

ref: 73dd41e059497af9722bf9082dfc7f6b50277b49 website/_layouts/index.html -rw-r--r-- 386 bytes
73dd41e0EuAndreh Don't reverse the order of posts in the posting list in index.html a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
layout: default
---
<h1>{{ site.t.recent_posts[page.lang] }}</h1>
{% assign lposts=site.posts | where:"lang", page.lang | sort: 'date' %}
{% if lposts.size > 0 %}
  <ul>
    {%- for post in lposts -%}
      <li>
        <a href="{{ post.url }}">{{ post.title | escape }}</a> - {{ post.date | date: site.t.date_format[page.lang] }}
      </li>
    {%- endfor -%}
  </ul>
{% endif %}