mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-09-10 18:26:15 +02:00
added read time on index and post pages
This commit is contained in:
@@ -13,13 +13,13 @@ interface Props {
|
||||
|
||||
const Post: React.FC<Props> = ({ post }: Props) => {
|
||||
const { html } = post;
|
||||
const { tagSlugs, slug } = post.fields;
|
||||
const { tagSlugs, slug, readingTime } = post.fields;
|
||||
const { tags, title, date, disqusId } = post.frontmatter;
|
||||
|
||||
return (
|
||||
<div className={styles.post}>
|
||||
<div className={styles.content}>
|
||||
<Content body={html} title={title} />
|
||||
<Content body={html} title={title} subTitle={readingTime?.text} />
|
||||
</div>
|
||||
|
||||
<div className={styles.footer}>
|
||||
|
Reference in New Issue
Block a user