fix: only show related posts and navigation on posts, not pages
All checks were successful
Deploy Theme / deploy (push) Successful in 13s
All checks were successful
Deploy Theme / deploy (push) Successful in 13s
This commit is contained in:
4
post.hbs
4
post.hbs
@@ -30,7 +30,8 @@
|
|||||||
{{content fallback="<p>No content provided for this post.</p>"}}
|
{{content fallback="<p>No content provided for this post.</p>"}}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{!-- Related Posts --}}
|
{{!-- Related Posts - Only show on posts, not pages --}}
|
||||||
|
{{#is "post"}}
|
||||||
{{#if primary_tag}}
|
{{#if primary_tag}}
|
||||||
{{#get "posts" filter="tags:{{primary_tag.slug}}+id:-{{id}}" limit="3" as |related_posts|}}
|
{{#get "posts" filter="tags:{{primary_tag.slug}}+id:-{{id}}" limit="3" as |related_posts|}}
|
||||||
{{#if related_posts}}
|
{{#if related_posts}}
|
||||||
@@ -65,6 +66,7 @@
|
|||||||
{{/next_post}}
|
{{/next_post}}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
{{/is}}
|
||||||
|
|
||||||
<footer class="mt-12 pt-8 border-t border-[var(--bg-tertiary)] text-center">
|
<footer class="mt-12 pt-8 border-t border-[var(--bg-tertiary)] text-center">
|
||||||
<a href="/" class="btn-primary">
|
<a href="/" class="btn-primary">
|
||||||
|
|||||||
Reference in New Issue
Block a user