-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththingstodo.html
More file actions
52 lines (51 loc) · 2.45 KB
/
Copy paththingstodo.html
File metadata and controls
52 lines (51 loc) · 2.45 KB
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
<section id="blog" class="blog">
<div class="content-wrapper text-left">
{% assign loopindex = 0 %}
{% for post in site.categories.thingstodo %}
{% assign loopindex = loopindex | plus: 1 %}
{% assign rowfinder = loopindex | modulo: 2 %}
{% if rowfinder == 1 %}
<div class="row" style="padding-left: 30px; padding-right: 30px;">
<div class="col-lg-6 col-md-6 col-xs-6">
<a href="{{ site.baseurl | append: post.url }}" title="{{ post.title }}"><h4>{{ post.title }}</h4></a>
<p class="post-body">{{ post.content | strip_html | truncate: 350 }} <a href="{{ site.baseurl | append: post.url }}">continue reading</a></p>
</div>
{% elsif rowfinder == 0 %}
<div class="col-lg-6 col-md-6 col-xs-6">
<a href="{{ site.baseurl | append: post.url }}" title="{{ post.title }}"><h4>{{ post.title }}</h4></a>
<p class="post-body">{{ post.content | strip_html | truncate: 350 }} <a href="{{ site.baseurl | append: post.url }}">continue reading</a></p>
</div>
</div>
{% else %}
<div class="col-lg-6 col-md-6 col-xs-6">
<a href="{{ site.baseurl | append: post.url }}" title="{{ post.title }}"><h4>{{ post.title }}</h4></a>
<p class="post-body">{{ post.content | strip_html | truncate: 350 }} <a href="{{ site.baseurl | append: post.url }}">continue reading</a></p>
</div>
{% endif %}
{% endfor %}
{% if rowfinder != 0 %}
</div>
{% endif %}
<div class="col-md-10 col-sm-10 col-lg-offset-2 col-md-offset-2 col-sm-offset-1">
<div class="col-lg-8 col-md-10 col-xs-12">
{% if paginator.total_pages > 1 %}
<div class="row">
<div class="pagination">
{% if paginator.previous_page %}
<a href="/page{{ paginator.previous_page }}" class="previous">Previous</a>
{% else %}
<span class="previous">Previous</span>
{% endif %}
<span class="page-number ">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="/page{{ paginator.next_page }}" class="next">Next</a>
{% else %}
<span class="next ">Next</span>
{% endif %}
</div>
</div>
{% endif %}
</div>
</div>
</div>
</section>