Add previous/next buttons for blog posts

This commit is contained in:
2026-01-19 10:45:48 -08:00
parent 83d98ce852
commit 6f56d46516
2 changed files with 34 additions and 0 deletions

View File

@@ -12,3 +12,16 @@ layout: default
</div>
{{ content }}
<div class="project-footer">
<div>
{% if page.previous != nil %}
<a href="{{ page.previous.url }}">Previous</a>
{% endif %}
</div>
<div>
{% if page.next != nil %}
<a href="{{ page.next.url }}">Next</a>
{% endif %}
</div>
</div>

View File

@@ -139,3 +139,24 @@
margin: 0;
display: inline-block;
}
.project-footer {
box-sizing: border-box;
display: flex;
flex-direction: row;
justify-content: space-between;
height: 64px;
border-top: 1px solid black;
border-bottom: 1px solid black;
padding-top: 16px;
padding-bottom: 16px;
margin-top: 96px;
}
.project-footer div {
display: flex;
flex-direction: row;
align-items: center;
}