DEV Community

Pushpendra Singh
Pushpendra Singh

Posted on • Edited on

5 1

Integrating Dynamic Like Count to Gatsby Blog Site

Hey, I recently finished creating a blog website using Gatsby and GraphCMS and deploying it using Netlify.

I need help in integrating a feature similar to Medium's clap.

I will need to store, subscribe and update the blog’s like count.

Steps

  1. On every build store and initialize a new blog with like count zero.
  2. On the blog page add the feature to update blog like count.
  3. On the blog page subscribe to blog like count.

Top comments (3)

Collapse
 
nickytonline profile image
Nick Taylor

Take a look at Kyle Shevlin’s blog. He did this with a fun beard icon as an homage to this his finely groomed beard.

Screenshot of Kyle Shevlin’s sure

I can’t find the source code for his site on GitHub, so maybe send him a Tweet.

Collapse
 
nickytonline profile image
Nick Taylor

I asked him on Twitter. He might chime in here.

Collapse
 
stud2design profile image
Pushpendra Singh

Thank you for it, I will follow up on it.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay