--- import {formatDateToYYYYMMDD} from "../utils/date-utils"; import { Icon } from 'astro-icon/components'; import {i18n} from "../i18n/translation"; import I18nKey from "../i18n/i18nKey"; interface Props { class: string; published: Date; tags: string[]; category: string; } const {published, tags, category} = Astro.props; const className = Astro.props.class; ---
{formatDateToYYYYMMDD(published)}
{(tags && tags.length > 0) && tags.map(tag => )} {!(tags && tags.length > 0) &&
{i18n(I18nKey.noTags)}
}