This repository has been archived on 2025-12-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
BreadnetV3/web/src/components/post/postInfo.astro

17 lines
424 B
Plaintext

---
import { getFormattedDate } from '@utils/date'
const { publishDate, wordCount, readTime, tags } = Astro.props
---
<time datetime={publishDate}>{getFormattedDate(publishDate)}</time> |
<span title={`${wordCount} words`}>{readTime} min. read</span> |
{
tags.map((tag, i) => (
<>
<a class="b1-no-underline" href={`/posts/tag/${tag}/`}>
#{tag}
</a>
{i < tags.length - 1 && ", "}
</>
))
}