This commit is contained in:
11
post.hbs
11
post.hbs
@@ -52,14 +52,14 @@
|
||||
{{!-- Next/Prev Navigation --}}
|
||||
{{#next_post}}
|
||||
<nav class="mt-16 max-w-3xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-4 border-t border-[var(--bg-tertiary)] pt-12">
|
||||
<div class="prev-post-nav">
|
||||
{{#../prev_post}}
|
||||
{{#prev_post}}
|
||||
<div class="prev-post-nav">
|
||||
<a href="{{url}}" class="group block p-6 bg-[var(--bg-secondary)] rounded-lg hover:bg-[var(--bg-tertiary)] transition-all duration-300">
|
||||
<span class="text-xs uppercase tracking-widest text-[var(--text-tertiary)] mb-2 block">← Previous Post</span>
|
||||
<h4 class="text-xl font-bold group-hover:text-[var(--brand-primary)] transition-colors duration-300">{{title}}</h4>
|
||||
</a>
|
||||
{{/../prev_post}}
|
||||
</div>
|
||||
</div>
|
||||
{{/prev_post}}
|
||||
<div class="next-post-nav md:text-right">
|
||||
<a href="{{url}}" class="group block p-6 bg-[var(--bg-secondary)] rounded-lg hover:bg-[var(--bg-tertiary)] transition-all duration-300">
|
||||
<span class="text-xs uppercase tracking-widest text-[var(--text-tertiary)] mb-2 block">Next Post →</span>
|
||||
@@ -76,9 +76,6 @@
|
||||
<h4 class="text-xl font-bold group-hover:text-[var(--brand-primary)] transition-colors duration-300">{{title}}</h4>
|
||||
</a>
|
||||
</div>
|
||||
<div class="next-post-nav md:text-right">
|
||||
{{!-- No next post --}}
|
||||
</div>
|
||||
</nav>
|
||||
{{/prev_post}}
|
||||
{{/next_post}}
|
||||
|
||||
Reference in New Issue
Block a user