-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (62 loc) · 2.37 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
layout: default
title: Blog | Elizabeth Chesters
header: Welcome to my blog
image: /images/blog-header.jpg
summary: A User Experience consultant. Read here about my research, tech adventures and advice for budding developers and UX-ers
---
{% include _components/banner.html %}
<div class="col-xs-12 add-padding top bg-white">
<div class="col-xs-12 col-lg-8 position central add-padding top">
<div class="row">
<div class="portfolio-items">
{% for post in paginator.posts %}
{% assign mod2 = forloop.index | modulo: 2 %}
{% assign mod3 = forloop.index | modulo: 3 %}
<div class="col-md-4 col-sm-6 portfolio-item">
<a href="{{ post.url }}" class="portfolio-link" data-toggle="modal">
<div class="portfolio-hover">
<div class="portfolio-hover-content">
<i class="fa fa-eye" aria-hidden="true"></i>
</div>
</div>
{% if post.image %}
<div class="portfolio-img-container">
<img src="{{post.image}}">
</div>
{% endif %}
</a>
<div class="portfolio-caption">
<a href="{{ post.url }}">
<h4>{{ post.title }}</h4>
<p class="text-muted text-left">{{ post.description }}</p>
</a>
<p class="date no-margin">{{ post.date | date: "%e %B %Y" }}</p>
</div>
</div>
{% if mod2 == 0 %}
<div class="clearfix visible-sm-block"></div>
{% endif %}
{% if mod3 == 0 %}
<div class="clearfix visible-md-block visible-lg-block"></div>
{% endif %}
{% endfor %}
</div>
</div>
<div class="col-xs-12 text-center">
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous">Previous</a>
{% else %}
<span class="previous"></span>
{% endif %}
<span class="page_number">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">Next</a>
{% else %}
<span class="next"></span>
{% endif %}
</div>
</div>
</div>
</div>