summary refs log tree commit diff
path: root/layouts/list.jinja
blob: 68ab22d5cb42223d3f8e20a63d5e3ea0bc2e08c94bf5163641a663fa457b206a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% extends 'base.jinja' %}

{% block title %}
  {{ site.title }} - {{ section.title }}
{% endblock %}

{% block content %}
  <h1>{{ section.title }}</h1>
{{ section.content | safe }}
<ol {% if section.params.reversed %}reversed{% endif %}>
  {% set pages = section.pages %}
  {% if section.params.reversed %}
    {% set pages = section.pages | reverse %}
  {% endif %}
  {% for p in pages %}
  <li>
    {% if p.date %}
    {{ p.date.date() }}
    {% endif %}
    ({{ p.language }}) <a href={{ p.rel_permalink }}>{{ p.title }}</a>
  </li>
  {% endfor %}
</ol>
{% endblock content %}