-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlevels.html
36 lines (35 loc) · 979 Bytes
/
levels.html
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
---
layout: page
title: Articles by proficiency levels
lang: en
permalink: /levels/
hide-page-header: true
---
{% for lvl in site.data.proficiency-levels %}
{% assign level = lvl[1] %}
{% assign postCount = 0 %}
<h3 id="proficiency-level-{{ level.name | slugify }}">
{{ level.name }}
<small>{{ level.short-description }}</small>
</h3>
<p style="margin: 0 0 20px;"><small><em>{{ level.description }}</em></small></p>
<ul class="regroup-list">
{% for post in site.posts %}
{% if post.proficiency-level == level.name %}
{% assign postCount = postCount | plus: 1 %}
<li>
<a href="{{ post.url }}">
<span>{{ post.title }}</span>
{% if post.subtitle %}
<span class="post-subtitle">{{ post.subtitle }}</span>
{% endif %}
<small>({{ post.date | date_to_string }})</small>
</a>
</li>
{% endif %}
{% endfor %}
{% if postCount == 0 %}
<li>No article of this level... yet!</li>
{% endif %}
</ul>
{% endfor %}