-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (51 loc) · 2.14 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
---
layout: default
---
<div class="home uk-container uk-container-center">
{% for post in paginator.posts %}
<article>
<div class="uk-grid">
<div class="uk-width-1-1">
<div class="">
{% assign foundImage = 0 %}
{% assign images = post.content | split:"<img " %}
{% for image in images %}
{% if image contains 'src' %}
{% if foundImage == 0 %}
{% assign html = image | split:"/>" | first %}
<div class="uk-cover-background">
<img {{ html }}/>
</div>
{% assign foundImage = 1 %}
{% endif %}
{% endif %}
{% endfor %}
<section class="excerpt content">
<a href="{{ post.url | prepend: site.baseurl }}"><h2 class="card-title" style="line-height: 1;">
{{ post.title }}</h2></a>
<p>{{ post.excerpt | strip_html | truncatewords:75 }}</p>
</section>
<div class="action">
<a href="{{ post.url | prepend: site.baseurl }}" class="uk-align-right">Read More »</a>
</div>
</div>
</div>
</div>
</article>
{% endfor %}
<!-- Pagination links -->
<ul class="uk-pagination">
{% if paginator.previous_page %}
<li class="uk-pagination-previous"><a href="{{ paginator.previous_page_path }}" class="previous">Previous</a>
</li>
{% else %}
<li class="uk-pagination-previous uk-disabled"><a href="#!">Previous</a></li>
{% endif %}
<li class="uk-active"><a href="#!">Page: {{ paginator.page }} of {{ paginator.total_pages }}</a></li>
{% if paginator.next_page %}
<li class="uk-pagination-next"><a href="{{ paginator.next_page_path }}" class="next">Next</a></li>
{% else %}
<li class="uk-pagination-next uk-disabled"><a href="#!">Next</a></li>
{% endif %}
</ul>
</div>