--- import Date from "@components/organisms/Date.astro"; import RelativeTime from "@components/organisms/RelativeTime.astro"; import KeywordsList from "@components/organisms/KeywordsList.astro"; import { getFirstUserID, getLastUpdate } from "@lib/collection/helpers"; import type { MicroEntry } from "@lib/collection/schemas"; import { getRelativeTimeUnit } from "@utils/datetime"; interface Props { micro: MicroEntry; seeAll?: boolean; } const { micro, seeAll = false } = Astro.props; const { id, data, rendered } = micro; const { title, lang, keywords } = data; const date = getLastUpdate(micro); const user = await getFirstUserID(micro); const display = user?.name ?? user?.email ?? user?.entity ?? ""; const [first, ...names] = display.split(/\s/); const last = names.length > 0 ? names[names.length - 1] : ""; const little = ((first?.[0] ?? "") + (last?.[0] ?? "")).slice(0, 2); ---

{title}

{ user?.website ? {little} : ( {little} ) }
ยท ()
{lang}
{ seeAll && ( ) }