forked from p2pu/course-in-a-box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
side_toolbar.html
34 lines (33 loc) · 854 Bytes
/
side_toolbar.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
<div class="sidebar col-md-3">
{% include next_module.html %}
{% if prev %}
<div class="pagination-section">
<div class="title">
Previous module:
</div>
<a rel="prev" class="prev" href="{{ site.baseurl }}{{ prev_post.url }}">
{{ prev.title }} </a>
</div>
<hr />
{% endif %}
<ul>
{% for post in site.categories[module] reversed %}
<li class="{% if post.url == page.url %}active{% endif %} {% if forloop.first %}first{% endif %} {% if forloop.last %}last{% endif %}">
<a
href="{{ site.baseurl }}{{ post.url }}">
{{ post.title }}
</a>
</li>
{% endfor %}
</ul>
{% if next %}
<hr />
<div class="pagination-section">
<div class="title">
Next module:
</div>
<a rel="next" class="next" href="{{ site.baseurl }}{{ next_post.url }}"> {{ next.title }}
</a>
</div>
{% endif %}
</div>