fix: move post navigation inside post check to hide on pages
All checks were successful
Deploy Theme / deploy (push) Successful in 14s
All checks were successful
Deploy Theme / deploy (push) Successful in 14s
This commit is contained in:
4
post.hbs
4
post.hbs
@@ -32,6 +32,8 @@
|
||||
{{content fallback="<p>No content provided for this post.</p>"}}
|
||||
</section>
|
||||
|
||||
{{!-- Related Posts - Only show on posts, not pages --}}
|
||||
{{#is "post"}}
|
||||
{{!-- Next/Prev Navigation --}}
|
||||
<nav class="hidden has-[a]:grid mt-16 max-w-3xl mx-auto grid-cols-1 md:grid-cols-2 gap-4 pt-12">
|
||||
{{#prev_post}}
|
||||
@@ -53,8 +55,6 @@
|
||||
{{/next_post}}
|
||||
</nav>
|
||||
|
||||
{{!-- Related Posts - Only show on posts, not pages --}}
|
||||
{{#is "post"}}
|
||||
{{#if primary_tag}}
|
||||
{{#get "posts" filter="tags:{{primary_tag.slug}}+id:-{{id}}" limit="3" as |related_posts|}}
|
||||
{{#if related_posts}}
|
||||
|
||||
Reference in New Issue
Block a user