--- import { APP_BLOG } from 'astrowind:config'; import { getRelatedPosts } from 'utils/blog'; import BlogHighlightedPosts from '../widgets/BlogHighlightedPosts.astro'; import type { Post } from 'types'; import { getBlogPermalink } from 'utils/permalinks'; export interface Props { post: Post; } const { post } = Astro.props; const relatedPosts = post.tags ? await getRelatedPosts(post, 4) : []; --- { APP_BLOG.isRelatedPostsEnabled ? ( post.id)} /> ) : null }