-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
49 lines (45 loc) · 1.23 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
---
layout: default
title: Home
---
{% for post in paginator.posts %}
<article>
<a href="{{ site.github.url }}{{ post.url }}">
<div
class="featured-posts"
{%
if
post.image
%}style="background-image:url({{ site.github.url }}/assets/img/{{ post.image }})"
{%
else
%}style="background-image:url({{ site.github.url }}/assets/img/alexandre-debieve-FO7JIlwjOtU-unsplash.jpg)"
{%
endif
%}
>
<h2><span>{{ post.title }}</span></h2>
</div>
</a>
</article>
{% endfor %}
<!-- Pagination links -->
<div class="pagination">
{% if paginator.next_page %}
<a
class="pagination-button pagination-active next"
href="{{ site.github.url }}{{ paginator.next_page_path }}"
>{{ site.data.settings.pagination.previous_page }}</a
>
{% else %}
<span class="pagination-button">{{ site.data.settings.pagination.previous_page }}</span>
{% endif %} {% if paginator.previous_page %}
<a
class="pagination-button pagination-active"
href="{{ site.baseurl }}{{ paginator.previous_page_path }}"
>{{ site.data.settings.pagination.next_page }}</a
>
{% else %}
<span class="pagination-button">{{ site.data.settings.pagination.next_page }}</span>
{% endif %}
</div>