Repository navigation
Expand file tree
/
Copy pathdefault.html
More file actions
42 lines (38 loc) · 1.44 KB
/
Copy pathdefault.html
File metadata and controls
42 lines (38 loc) · 1.44 KB
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
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
<div id="wrapper">
{% include header.html %}
<div class="container">
<section id="main_content">
{{ content }}
</section>
</div>
</div>
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page == 1 %}
<a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">«</a>
{% elsif paginator.previous_page%}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">«</a>
{% else %}
<span class="page-item">«</span>
{% endif %} {% for page in (1..paginator.total_pages) %} {% if page == paginator.page %}
<span class="page-item">{{ page }}</span>
{% elsif page == 1 %}
<a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}" class="page-item">{{ page }}</a>
{% endif %} {% endfor %} {% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">»</a>
{% else %}
<span class="page-item">»</span>
{% endif %}
</div>
{% endif %} {% include footer.html %}
{% if site.google_analytics %}
{% include analytics.html %}
{% endif %}
</body>
</html>