-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseries.html
More file actions
32 lines (25 loc) · 839 Bytes
/
Copy pathseries.html
File metadata and controls
32 lines (25 loc) · 839 Bytes
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
{% assign series = site.data.[page.series] %}
{% assign posts = site.posts %}
<p class="title is-5 is-spaced">{{ series.title }}</p>
{% if series.description %}
<p>{{ series.description }}</p>
{% endif %}
{% for section in series.sections %}
{% if section.label %}
<p class="title is-6">{{ section.label }}</p>
{% endif %}
<ul class="block-list is-small is-outlined">
{% for item in section.items %}
{% assign post = posts | where: "title", item.title %}
{% if page.url == post[0].url %}
<li class="is-highlighted is-dark">
<p>{{ item.title }}</p>
</li>
{% else %}
<li>
<a href="{{ site.baseurl }}{{ post[0].url }}" class="is-flex" >{{ item.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}