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