feat: add published date
This commit is contained in:
@@ -39,10 +39,16 @@ const getAlias = (did: string) => aka.value.get(did) ?? ""
|
||||
class="btn btn-link"
|
||||
>{{ note.title }}</router-link
|
||||
>
|
||||
|
||||
<div class="text-xs opacity-80 alias">
|
||||
<span v-if="getAlias(note.did)">
|
||||
{{ getAlias(note.did) }}
|
||||
</span>
|
||||
<span v-if="note.publishedAt"
|
||||
> • {{
|
||||
new Date(note.publishedAt).toLocaleDateString()
|
||||
}}
|
||||
</span>
|
||||
<div v-else class="skeleton h-4 w-20"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user