2 import type { Post } from '$lib/data/types';
8 import { _ } from 'svelte-i18n';
9 import Glyph from '$lib/components/glyph/glyph.svelte';
11 const timestampToISO = (timestamp: number) => new Date(timestamp).toISOString();
16 title={$_('post.metadata_title', { values: { count: index + 1, total: count } })}
18 <Glyph uuid={post.author_id} />
21 {$_('post.author_credit')}
22 <a href="/a/{post.author.handle}" class="p-nickname u-url underline text-blue-600 visited:text-purple-500">{post.author.handle}</a>.
27 <time role="presentation" class="dt-published" datetime={timestampToISO(post.created_at)}>
28 <a title={$_('post.permalink_title')} class="underline text-blue-600 visited:text-purple-500" href="/p/{post.id}">
29 {timestampToISO(post.created_at)}
34 ({$_('post.topic_location')} <a class="text-blue-600 underline visited:text-purple-500" href="/t/{post.topic.id}">{post.topic.title}</a>.)
39 class="e-content whitespace-pre"
40 title={$_('post.title', {
41 values: { count: index + 1, total: count, author: post.author?.handle || '????' }