6 import { _ } from 'svelte-i18n';
7 import Glyph from '$/components/glyph/glyph.svelte';
9 const timestampToISO = (timestamp) => new Date(timestamp).toISOString();
14 title={$_('post.metadata_title', { values: { count: index + 1, total: count } })}
16 <Glyph uuid={post.author.id} />
18 {$_('post.author_credit')}
19 <a href="/a/{post.author.handle}" class="p-nickname u-url">{post.author.handle}</a>.
21 <time role="presentation" class="dt-published" datetime={timestampToISO(post.created_at)}>
22 <a title={$_('post.permalink_title')} href="/p/{post.id}">
23 {timestampToISO(post.created_at)}
27 ({$_('post.topic_location')} <a href="/t/{post.topic.id}">{post.topic.title}</a>.)
32 title={$_('post.title', {
33 values: { count: index + 1, total: count, author: post.author.handle }