-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpictures.html
30 lines (29 loc) · 963 Bytes
/
pictures.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
---
title: Pictures
---
<div class='row'>
{% for picture in site.data.pictures %}
<div class='col-md-3 thumbnail flickr'>
<a href='{{ picture["photo_page"] }}' title='View full-size on Flickr'>
<img src='{{ picture["photo_url"] }}' alt='{{ picture['title'] }}'/>
</a>
<div class='caption'>
<h1 class='text-center'>
{{ picture['title'] }}
{% if picture['photographer'] %}
{% assign key = picture['photographer'] %}
{% assign url = site.data.photographers[key]['website'] %}
<small>
Photo by
<a href='{{ url }}'>
{{ picture['photographer'] | capitalize }}
</a>
</small>
{% endif %}
</h1>
<h2>License: <a href='{{ picture["license_url"]}}'>{{ picture['license']}}</a></h2>
</div>
</div>
{% cycle '', '', '', "</div><div class='row'>" %}
{% endfor %}
</div>