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')}
23 href="/a/{post.author.handle}"
24 class="p-nickname u-url underline text-blue-600 visited:text-purple-500"
25 >{post.author.handle}</a
31 <time role="presentation" class="dt-published" datetime={timestampToISO(post.created_at)}>
33 title={$_('post.permalink_title')}
34 class="underline text-blue-600 visited:text-purple-500"
37 {timestampToISO(post.created_at)}
42 ({$_('post.topic_location')}
43 <a class="text-blue-600 underline visited:text-purple-500" href="/t/{post.topic.id}"
44 >{post.topic.title}</a
50 class="e-content whitespace-pre"
51 title={$_('post.title', {
52 values: { count: index + 1, total: count, author: post.author?.handle || '????' }