-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.njk
53 lines (46 loc) · 1.52 KB
/
index.njk
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
---
layout: layouts/base.liquid
pageTitle: To Hell with bad CSS!
pagination:
data: collections.posts
size: 5
alias: entries
reverse: true
---
<ol class="post-list" reversed>
{% for post in entries %}
<li class="post-list--entry">
<h2 class="post-title"><a href="{{ post.url }}">{{ post.data.pageTitle }}</a></h2>
{% if post.data.lead %}
<p>{{ post.data.lead | md | safe }}</p>
{% endif %}
{% highlight "css" %}
{{ post.data.badcode | prettyCSS | safe }}
{% endhighlight %}
<div class="post-bottom-navigation">
<a class="read-more" href="{{ post.url }}">Check out what is going on here <span aria-hidden="true">⇸</span></a>
</div>
</li>
{% endfor %}
</ol>
<nav class="site-bottom-navigation" role="navigation" aria-label="Pagination">
<ul class="site-pagination">
{% if pagination.previousPageHref %}
<li class="site-pagination--item">
<a class="site-pagination--link" href="{{ pagination.previousPageHref }}">« Previous</a>
</li>
{% endif %}
{% for page in pagination.hrefs %}
<li class="site-pagination--item">
<a class="site-pagination--link" href="{{ page }}" {% if pagination.pageNumber == loop.index0 %}aria-current="true" tabindex="-1"{% endif %}>
{{ loop.index }}
</a>
</li>
{% endfor %}
{% if pagination.nextPageHref %}
<li class="site-pagination--item">
<a class="site-pagination--link" href="{{ pagination.nextPageHref }}">Next »</a>
</li>
{% endif %}
</ul>
</nav>