--- import type { CollectionEntry } from "astro:content"; import path from "node:path"; import { Icon } from "astro-icon/components"; import I18nKey from "../i18n/i18nKey"; import { i18n } from "../i18n/translation"; import { getDir } from "../utils/url-utils"; import ImageWrapper from "./misc/ImageWrapper.astro"; import PostMetadata from "./PostMeta.astro"; interface Props { class?: string; entry: CollectionEntry<"posts">; title: string; url: string; published: Date; updated?: Date; tags: string[]; category: string | null; image: string; description: string; draft: boolean; style: string; } const { entry, title, url, published, updated, tags, category, image, description, style, } = Astro.props; const className = Astro.props.class; const hasCover = image !== undefined && image !== null && image !== ""; const coverWidth = "28%"; const { remarkPluginFrontmatter } = await entry.render(); ---