blob: 22e5df38c00175b0a57a44ff02a0cb15870b8bdb (
about) (
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
25
26
27
28
29
30
31
32
33
34
35
36
|
{% assign entries_with_categories = "" | split:"" %}
{% for entry in site[include.kind] %}
{% if entry.lang == page.lang %}
{% if entry.eu_categories %}
{% assign entries_with_categories = entries_with_categories | push:entry %}
{% endif %}
{% endif %}
{% endfor %}
{% assign entries_with_categories = entries_with_categories | reverse %}
{% assign categories = "" | split:"" %}
{% for entry in entries_with_categories %}
{% assign entry_categories = entry.eu_categories | split:"," %}
{% for entry_category in entry_categories %}
{% assign categories = categories | push:entry_category %}
{% endfor %}
{% endfor %}
{% assign unique_categories = categories | sort | uniq %}
{% for category in unique_categories %}
<h2 id="{{ category }}">
<a href="#{{ category }}">{{ category }}</a>:
</h2>
<ul>
{% for entry in entries_with_categories %}
{% assign entry_categories = entry.eu_categories | split:"," %}
{% for entry_category in entry_categories %}
{% if category == entry_category %}
<li>
<a href="{{ entry.url | relative_url }}">{{ entry.title | escape }}</a> - {% include i18n-date.html date=entry.date %}
</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
{% endfor %}
|