-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
72 lines (68 loc) · 2.29 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
---
layout: default
---
<section class="hero is-primary">
<div class="hero-body">
<div class="container">
<h1 class="title is-spaced">
<a href="/">{{ site.name }}</a>
</h1>
<h2 class="subtitle is-6">
{{ site.description }}
</h2>
</div>
</div>
</section>
<section class="section articleList">
<div class="container">
{% for post in paginator.posts %}
<article class="card">
<a href="{{ site.baseurl }}{{ post.url }}">
<div class="card-content">
{% if post.episode %}
<p class="subtitle is-6"><small>Episode {{ post.episode }}</small></p>
{% endif %}
<p class="title is-4">{{ post.title }}</p>
<div class="content">
{{ post.excerpt | strip_html }}
<div class="has-text-right is-size-7">
<time datetime="{{ post.date | date: '%Y-%m-%d' }}">{{ post.date | date: '%Y.%m.%d' }}</time>
</div>
</div>
</div>
</a>
</article>
{% endfor %}
<nav class="pagination is-centered">
<a
class="pagination-previous"
{% if paginator.previous_page %}
href="{% if paginator.previous_page == 1 %}/{% else %}/page/{{ paginator.previous_page }}/{% endif %}"
{%else%}
disabled
{% endif %}
><< Newer</a>
<a
class="pagination-next"
{% if paginator.next_page %}
href="/page/{{ paginator.next_page }}/"
{%else%}
disabled
{% endif %}
>Older >></a>
<ul class="pagination-list">
{% for page in (1..paginator.total_pages) %}
{% if page == 2 or page == paginator.total_pages %}
<li class="pager_ellipsis is-hidden"><span class="pagination-ellipsis">…</span></li>
{% endif %}
<li class="pager is-hidden">
<a {% if page == paginator.page %}{% else %}
href="{% if page == 1 %}/{% else %}/page/{{ page }}/{% endif %}" {%
endif %} class="pagination-link {% if page == paginator.page %} is-current {% endif %}">{{ page }}</a>
</li>
{% endfor %}
</ul>
<script>pager({{ paginator.page }}, {{ paginator.total_pages }}, 5)</script>
</nav>
</div>
</section>