style: update related posts heading and include tags for post cards
All checks were successful
Deploy Theme / deploy (push) Successful in 15s
All checks were successful
Deploy Theme / deploy (push) Successful in 15s
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{{#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" include="tags" as |related_posts|}}
|
||||||
{{#if related_posts}}
|
{{#if related_posts}}
|
||||||
<section class="mt-16 pt-12 border-t border-[var(--bg-tertiary)]">
|
<section class="mt-16 pt-12 border-t border-[var(--bg-tertiary)]">
|
||||||
<h3 class="text-3xl font-bold mb-8 text-center">You might also like</h3>
|
<h3 class="text-3xl font-bold mb-8 text-center">You might like</h3>
|
||||||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8">
|
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||||
{{#foreach related_posts}}
|
{{#foreach related_posts}}
|
||||||
{{> "post-card"}}
|
{{> "post-card"}}
|
||||||
|
|||||||
Reference in New Issue
Block a user