-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
46 lines (42 loc) · 1.54 KB
/
index.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
---
layout: default
---
<!--start: Container-->
<div class="container">
<!-- start: Post -->
<div class="row">
{% for post in paginator.posts %}
{% assign filter = post.date | date: '%Y%m%d' %}
{% assign capture_collections = site.captures | where: "label", filter | sort: "date" %}
{% assign counter = 0 %}
{% for collection in capture_collections %}
{% assign counter = counter | plus: collection.capturas.size %}
{% endfor %}
{% assign preview_rand = capture_collections | sample: 3 %}
{% assign preview = preview_rand[0] %}
<div class="post-content col-lg-3 col-xs-12">
<div class="post-title">
<h2 class="nobreak"><a href="{{ post.url | prepend: site.url }}">{{ post.title }}</a></h2>
</div>
<div class="post-description">
<a href="{{ post.url }}">
<img src="{{ preview.preview | prepend: site.storage_url }}"
class="img img-thumbnail img-responsive"
alt="capture shot">
</a>
</div>
<div class="post-meta">
<span><i class="fa fa-calendar"></i> Data: {{ post.date | date: '%d/%m/%Y' }}</span><br>
<span><i class="fa fa-meteor"></i> Capturas: {{ counter }}</span>
</div>
</div>
{% endfor %}
</div>
<!-- end: Post -->
<!--start: Row -->
<div class="row">
{% include pagination.html %}
</div>
<!--end: Row -->
</div>
<!--end: Container-->