forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
95 lines (94 loc) · 4.57 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
layout: default
activeTab: "blog"
spielTitle: Hi there.
spiel: I'm Nathan, and this is my blog. Enjoy your stay.
---
<a name="top"></a>
<h1>The latest spicy discourse,<br> hot off the keyboard.</h1>
<p><a href="https://nathanupchurch.com/feed.xml"><span>Subscribe: <i class="fas fa-rss"></i></span></a></p>
<div class="posts">
{% for post in paginator.posts %}
{% assign loopindex = forloop.index | modulo: 2 %}
{% if forloop.first == true %}
<div class="row">
<article style="background-image: url({{ site.baseurl }}{{ post.featured-image }})" class="post twelve columns wow fadeIn card featured" data-wow-duration=".5s" data-wow-delay=".2s">
<a class="cardCover" href="{{ site.baseurl }}{{ post.url }}">
<h1>{{ post.title }}</h1>
<p class="entry snippet">{{ post.excerpt }}</p>
<div class="cardInfo">
<button>Read More</button>
<p>{{ post.date | date: '%B %d, %Y' }}</p>
</div>
</a>
</article>
</div>
{% elsif loopindex == 0 %}
<div class="row">
<article style="background-image: url({{ site.baseurl }}{{ post.featured-image }})" class="post six columns wow fadeIn card" data-wow-duration=".5s" data-wow-delay=".4s">
<a class="cardCover" href="{{ site.baseurl }}{{ post.url }}">
<h1>{{ post.title }}</h1>
<p class="entry snippet">{{ post.excerpt }}</p>
<div class="cardInfo">
<button>Read More</button>
<p>{{ post.date | date: '%B %d, %Y' }}</p>
</div>
</a>
</article>
{% else %}
<article style="background-image: url({{ site.baseurl }}{{ post.featured-image }})" class="post six columns wow fadeIn card" data-wow-duration=".5s" data-wow-delay=".6s">
<a class="cardCover" href="{{ site.baseurl }}{{ post.url }}">
<h1>{{ post.title }}</h1>
<p class="entry snippet">{{ post.excerpt }}</p>
<div class="cardInfo">
<button>Read More</button>
<p>{{ post.date | date: '%B %d, %Y' }}</p>
</div>
</a>
</article>
</div>
{% endif %}
{% endfor %}
<!--########################################################
PAGINATION NAV
########################################################-->
<!-- render pagination links if there are more than one pages -->
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<!-- special case the second page to link back to index.html -->
{% if paginator.page == 2 %}
<a href="/"><i class="fas fa-caret-left"></i> Prev</a>
{% else %}
<a href="/page/"><i class="fas fa-caret-left"></i> Prev</a>
{% endif %}
{% else %}
<!-- if no 'previous' pages exit, render a span rather than an anchor -->
<span><i class="fas fa-caret-left"></i> Prev</span>
{% endif %}
{% if paginator.next_page %}
<a class='next' href="{{ paginator.next_page_path }}">Next <i class="fas fa-caret-right"></i></a>
{% else %}
<!-- if no 'next' pages exit, render a span rather than an anchor -->
<span class='next'>Next <i class="fas fa-caret-right"></i></span>
{% endif %}
</div>
{% endif %}
<!--########################################################
END PAGINATION NAV
########################################################-->
</div>
<!--########################################################
JSCROLL
########################################################-->
<script type="text/javascript">
$(function() {
$('.posts').jscroll({
contentSelector: ".posts",
nextSelector: '.next'
});
});
</script>
<!--########################################################
END JSCROLL
########################################################-->