-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.html
More file actions
68 lines (61 loc) · 1.48 KB
/
blog.html
File metadata and controls
68 lines (61 loc) · 1.48 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
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
---
layout: default
title: Blog
permalink: /blog/
pagination:
enabled: true
---
{% if paginator.posts.size > 0 %}
<ul class="post-list">
{% for post in paginator.posts %}
<li class="post-item">
<p class="post-meta">{{ post.date | date: "%B %d, %Y" }}</p>
<h3 class="post-title">
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
</h3>
</li>
{% endfor %}
</ul>
{% if paginator.total_pages > 1 %}
<nav class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | relative_url }}" class="prev">Previous</a>
{% endif %}
<span class="page-info">{{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | relative_url }}" class="next">Next</a>
{% endif %}
</nav>
{% endif %}
{% else %}
<p>No posts yet. Check back soon.</p>
{% endif %}
<p class="git-blame"><code>$ git blame OPINIONS.md</code><br><code>a1b2c3d (Evan Volgas) These opinions are mine, not my employer's.</code></p>
<style>
.git-blame {
font-size: 0.8rem;
color: #666;
margin-top: 3rem;
padding-top: 1rem;
border-top: 1px solid #e0e0e0;
}
.git-blame code {
background: none;
padding: 0;
font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}
.pagination {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 1.5rem;
margin-top: 2rem;
}
.pagination a {
color: #2c4a6e;
}
.pagination .page-info {
color: #666;
font-size: 0.9rem;
}
</style>