-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
59 lines (57 loc) · 1.72 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
---
layout: default
title: Jason Heo's Blog
description: Data Engineering & LLM
---
<section>
<ul class="posts">
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
<li style="border-bottom: solid 0.5px #e6e6e6; margin-top: 8px;">
<!--<h2>-->
<a href="{{ post.url }}">{{ post.title }}</a>
<!--</h2>-->
<p style="margin-top: 2px;">
<span class="date">{{ post.date | date: "%Y-%m-%d" }}</span>
<span class="description">{{ post.description }}</span>
</p>
<!--
<ul class="tags cf">
{% for tag in post.categories %}
<li><a href="/search/?tags={{ tag }}">{{ tag | downcase }}</a></li>
{% endfor %}
</ul>
-->
</li>
{% endfor %}
</ul>
<!-- Pagination links -->
<ul class="pagination clearfix">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<li><a href="/">Prev</a></li>
{% else %}
<li><a href="/page{{ paginator.previous_page }}">Prev</a></li>
{% endif %}
{% else %}
<li><span class="disabled">Prev</span></li>
{% endif %}
{% if paginator.page == 1 %}
<li><span class="active">1</span></li>
{% else %}
<li><a href="/">1</a></li>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<li><span class="active">{{ count }}</span></li>
{% else %}
<li><a href="/page{{ count }}">{{ count }}</a></li>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<li><a href="/page{{ paginator.next_page }}">Next</a></li>
{% else %}
<li><span class="disabled">Next</span></li>
{% endif %}
</ul>
</section>