-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
35 lines (31 loc) · 1.5 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
---
title: Clojure/GSoC blog
layout: cards
---
{% for post in paginator.posts %}
<section class="mdl-card mdl-shadow--4dp mdl-cell mdl-cell--12-col clj-gsoc-blog-post-card">
<header class="mdl-card__title mdl-color-text--primary-contrast mdl-color--primary">
<h2 class="mdl-card__title-text"><a href="{{ post.url }}">{{ post.title }}</a></h2>
<div class="mdl-layout-spacer"></div>
<span>{{ post.date | date_to_string }}</span>
</header>
<main class="mdl-card__supporting-text mdl-card--expand">
{{ post.content }}
</main>
</section>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="mdl-cell mdl-cell--12-col clj-gsoc-pagination">
{% if paginator.previous_page %}
<a class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--raised mdl-button--colored" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">Previous</a>
{% else %}
<span class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--raised mdl-button--colored" disabled>Previous </span>
{% endif %}
<div class="mdl-layout-spacer"></div>
{% if paginator.next_page %}
<a class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--raised mdl-button--colored" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next</a>
{% else %}
<span class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--raised mdl-button--colored" disabled>Next</span>
{% endif %}
</div>
{% endif %}