--- import BlogCard from "@/components/BlogCard.astro"; import Share from "@/components/Share.astro"; import config from "@/config/config.json"; import Disqus from "@/helpers/Disqus"; import { getSinglePage } from "@/lib/contentParser.astro"; import { slugSelector } from "@/lib/languageParser.astro"; import dateFormat from "@/lib/utils/dateFormat"; import similarItems from "@/lib/utils/similarItems"; import { humanize, markdownify, slugify } from "@/lib/utils/textConverter"; import type { ContentEntryMap } from "astro:content"; import { FaRegClock, FaRegFolder, FaRegUserCircle } from "react-icons/fa"; import ImageMod from "./components/ImageMod.astro"; const { default_language } = config.settings; const COLLECTION_FOLDER = "blog"; const { post } = Astro.props; let { lang } = Astro.params; if (!lang) { lang = default_language; } const posts = await getSinglePage( COLLECTION_FOLDER, lang as keyof ContentEntryMap ); const similarPosts = similarItems(post, posts); const { Content } = await post.render(); const { title, description, author, categories, image, date, tags } = post.data; ---

Related Posts

{ similarPosts.map((post) => (
)) }