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