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} />
20 {$_('post.author_credit')}
21 <a href="/a/{post.author.handle}" class="p-nickname u-url">{post.author.handle}</a>.
23 <time role="presentation" class="dt-published" datetime={timestampToISO(post.created_at)}>
24 <a title={$_('post.permalink_title')} href="/p/{post.id}">
25 {timestampToISO(post.created_at)}
30 ({$_('post.topic_location')} <a href="/t/{post.topic.id}">{post.topic.title}</a>.)
36 title={$_('post.title', {
37 values: { count: index + 1, total: count, author: post.author.handle }