Add next/prev links to bottom of blog posts

This commit is contained in:
2026-01-09 00:13:23 -08:00
parent cc21c06641
commit 58fa014341
4 changed files with 151 additions and 6 deletions

View File

@@ -914,6 +914,64 @@ h1 {
margin: 0;
}
.post-navigation {
margin-top: 48px;
padding-top: 24px;
border-top: 1px solid var(--border-color);
}
.post-nav-links {
display: flex;
justify-content: space-between;
gap: 16px;
}
.post-nav-link {
display: flex;
flex-direction: column;
padding: 12px 16px;
border-radius: 6px;
background-color: var(--sheet-background);
border: 1px solid var(--border-color);
text-decoration: none;
color: var(--text-primary);
transition: all 0.2s ease;
flex: 1;
max-width: 48%;
}
.post-nav-link:hover {
background-color: var(--accent-color);
color: var(--accent-text-color);
transform: translateY(-2px);
}
.prev-nav {
align-items: flex-start;
}
.next-nav {
align-items: flex-end;
text-align: right;
}
.nav-direction {
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 4px;
color: var(--accent-color);
}
.post-nav-link:hover .nav-direction {
color: var(--accent-text-color);
}
.nav-title {
font-size: 1rem;
font-weight: 500;
line-height: 1.4;
}
/* Responsive adjustments */
@media (max-width: 1200px) {
aside {
@@ -1025,16 +1083,24 @@ h1 {
}
.post-content h3 {
font-size: 20px;
font-size: 22px;
}
.post-nav-link {
padding: 10px 12px;
font-size: 0.9rem;
}
.nav-title {
font-size: 0.9rem;
}
.tag-pills {
gap: 6px;
display: flex;
}
.tag-pill {
font-size: 12px;
padding: 4px 10px;
padding: 6px 12px;
}
}