--- 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 draft: boolean style: string } const { entry, title, url, published, 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() ---
{title}
{ description || remarkPluginFrontmatter.excerpt }
{remarkPluginFrontmatter.words} {" " + i18n(I18nKey.wordsCount)}
|
{remarkPluginFrontmatter.minutes} {" " + i18n(I18nKey.minutesCount)}
{hasCover &&
} {!hasCover && }