feat: minor fixes

This commit is contained in:
saicaca
2023-10-18 21:24:51 +08:00
parent 75d87f3afc
commit ea4a453e25
14 changed files with 193 additions and 104 deletions

View File

@@ -51,9 +51,9 @@ function formatDate(date: Date) {
return `${month}-${day}`;
}
// console.log(groups)
function formatTag(tag: string[]) {
return tag.map(t => `#${t}`).join(' ');
}
---
@@ -96,7 +96,7 @@ function formatDate(date: Date) {
<div class="w-[15%] text-left text-sm transition
whitespace-nowrap overflow-ellipsis overflow-hidden
text-black/30 dark:text-white/30"
>#Test #Markdown</div>
>{formatTag(post.data.tags)}</div>
</div>
</Button>
</a>