question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[gatsby-theme-minimal-blog]: How to deactivate the "reading time" plugin

See original GitHub issue

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:

Screenshot 2020-03-25 at 12 33 18

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
LekoArtscommented, Mar 31, 2020

Thanks for the comment @compliment !

1reaction
complimentcommented, Mar 27, 2020

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>

Read more comments on GitHub >

github_iconTop Results From Across the Web

sev7e0/gatsby-theme-minimal-blog-customize
Typography driven, feature-rich blogging theme with minimal aesthetics. Includes tags/categories support and extensive features for code blocks such as live ...
Read more >
LekoArts/gatsby-starter-minimal-blog - GitHub
Typography driven, feature-rich blogging theme with minimal aesthetics. Includes tags/categories support and extensive features for code blocks such as live ...
Read more >
Using and customizing official Gatsby themes from scratch ...
A Gatsby theme is a reusable block of a Gatsby site that can be shared, extended, and customized (source). It enables us to...
Read more >
How to Use a Gatsby Theme - YouTube
Gatsby #gatsbyjsGatsby themes can be hard to get your head around. At first blush, it might not be clear what you're really supposed...
Read more >
Using New Gatsby Source WordPress Plugin - CSS-Tricks
Option 1: Using the Gatsby starter​​ js file in our code editor and update its URL option to fetch data from our WordPress...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found