-
Notifications
You must be signed in to change notification settings - Fork 6
/
resources.html
61 lines (54 loc) · 1.74 KB
/
resources.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
layout: default
title: Ecosounds | Resources
---
<style>
.pages {
font-size: 130%;
}
.media-body {
font-size: 80%;
}
</style>
<div class="page-header">
<h1>Resources published by {{ site.name }}</h1>
<p>
A collection of tutorials, practicals, and lectures that we've published.
</p>
</div>
<div class="row">
<div class="col-md-12">
<div class="pages">
{% assign resources = site.pages| sort: 'date' | reverse %}
{% for page in resources %}
{% if page.tags contains "resource" %}
<ul class="media-list">
<div class="media-left">
<a href="{{ page.url | relative_url }}">
<div class="media-object img-thumbnail">
<div class="page-thumbnail">
<img class=""
src="{% if page.page_image %}{{ page.page_image | relative_url }}{% else %}/images/IMG_20130312_164234_128x128.jpg{% endif %}" alt="{{ page.title }}">
</div>
</div>
</a>
</div>
<div class="media-body">
<a class="unlink" href="{{ page.url | relative_url }}">
<h3 class="media-heading">{{ page.title }}
<small>
{{ page.subtitle}}
</small>
</h3>
<small class="text-muted">{{ page.date | date_to_string }} | {% for author in page.author %}{{ site.data.authors[author].display_name }}{% unless forloop.last %}, {% endunless %}{% endfor %}</small>
<p>
{{ page.excerpt | strip_html | truncatewords:100 }}
</p>
</a>
</div>
</ul>
{% endif %}
{% endfor %}
</div>
</div>
</div>