-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperiod.html
26 lines (24 loc) · 1000 Bytes
/
period.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
---
title: Periods
layout: default
permalink: /periods/
---
{% include breadcrumbs.html %}
<a href="{{ site.baseurl }}/add-period/" class="btn btn-default pull-right admin-only" data-hook="add-period-btn"><i class="fa fa-plus"></i> Add Period</a>
{% for period in site.periods %}
{% assign subject_count = site.subjects | where:"period", period.title | size %}
<div class="media">
<div class="media-left">
{% if period.logo and period.logo != empty %}
<a href="{{ site.baseurl }}{{ period.url }}" class="period-thumbnail">
<img class="media-object" src="{{ period.logo }}" alt="{{ period.title }}">
</a>
{% endif %}
</div>
<div class="media-body">
<h4 class="media-heading"><a href="{{ site.baseurl }}{{ period.url }}">{{ period.title }}</a></h4>
<p>{{ period.description }}</p>
<p><a href="{{ site.baseurl }}/subjects/?period={{ period.title | slugify }}">{{ subject_count }} subjects</a></p>
</div>
</div>
{% endfor %}