add wordcount to read time title, shrink footer text size a bit
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
---
|
||||
import { getFormattedDate } from '@utils/date'
|
||||
const { publishDate, readTime, tags } = Astro.props
|
||||
const { publishDate, wordCount, readTime, tags } = Astro.props
|
||||
---
|
||||
|
||||
<time datetime={publishDate}>{getFormattedDate(publishDate)}</time> |
|
||||
{readTime} min. read |
|
||||
<span title={`${wordCount} words`}>{readTime} min. read</span> |
|
||||
{
|
||||
tags.map((tag, i) => (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user