Closed chronoclast closed 4 years ago
Remove timeToRead parts in @lekoarts/gatsby-theme-minimal-blog/src/components/post.tsx and shadow it.
@@ -19,7 +19,6 @@ type PostProps = {
description?: string
body: string
excerpt: string
- timeToRead: number
banner?: {
childImageSharp: {
resize: {
@@ -50,8 +49,6 @@ const Post = ({ data: { post } }: PostProps) => (
<ItemTags tags={post.tags} />
</React.Fragment>
)}
- {` — `}
- <span>{post.timeToRead} min read</span>
</p>
<section sx={{ my: 5, ".gatsby-resp-image-wrapper": { my: [4, 4, 5], boxShadow: shadow.join(`, `) } }}>
<MDXRenderer>{post.body}</MDXRenderer>
@compliment thank you so much!
All good now!
I guess I couldn't find it across all files, since I was looking for readingTime
instead of timeToRead
. Damn... 😅
Thanks for the comment @compliment !
@LekoArts I noticed that using the starter however does not show any timeToRead whatsover. Even on a fresh bootstrap.
@ChristianIvicevic https://minimal-blog.lekoarts.de/introduction-to-defence-against-the-dark-arts and https://github.com/LekoArts/gatsby-themes/blob/master/cypress/e2e/minimal-blog.ts#L92 is both using the starter and it shows up / the test passes, so this is probably something on your end.
First of all, congratulations for the amazing work! Sorry upfront for the (probably stupid/beginner) question, I really couldn't find an answer by myself. Thanks a lot!!! Viele Grüße aus Berlin!
Summary
I would like to deactivate / remove the "reading time" plugin, so it's not shown in the blog posts; the one shown below, I mean:
Relevant information
I was going through this documentation, but I couldn't find such package or configuration (or a similar one) used in the project.
Theme
I'm using the
gatsby-theme-minimal-blog
.