update new article

This commit is contained in:
2026-01-18 22:15:07 +01:00
parent 1255ce4f07
commit cc8b8b6d8b
8 changed files with 515 additions and 67 deletions

View File

@@ -10,6 +10,10 @@ const style = css`
flex-direction: row;
gap: 4px;
}
h2 {
margin-top: 0;
}
`;
export default defineComponent({
@@ -28,9 +32,9 @@ export default defineComponent({
{blogEntries.result.value?.map(_ => (
<li key={_.slug}>
<div class="entry">
<RouterLink to={{ name: 'DjBlogEntry', params: { slug: _.slug }}}>{ _.title }</RouterLink>
<span>-</span>
<time datetime={ _.createdAt }>{ new Date(_.createdAt).toLocaleDateString() }</time>
<span>-</span>
<RouterLink to={{ name: 'DjBlogEntry', params: { slug: _.slug }}}>{ _.title }</RouterLink>
</div>
</li>
)) ?? <li>Blog posts loading...</li>}