My simple 16 step system for adding comments to my static site built with Astro

Added: November 20, 2023

Comments

  • Arco

    November 20, 2023 at 3:59 AM

    Very nice! Also a cool way to ensure that comments are archived/transferable to future website setups!

  • Stefan

    November 20, 2023 at 4:53 AM

    That's a creative approach! I'm wondering about bringing comments on my blog for ages and am hesitant about a 3rd party.

    I might look into this low-key approach. Thanks Rach!

  • Darek Kay

    November 22, 2023 at 7:07 PM

    I love static site generators, but including comments is indeed not as straightforward. I've been collecting all the tools and techniques for some time now. Ironically, I've decided to turn off the comments on my own blog 😅

  • Cassidy

    December 10, 2023 at 6:13 AM

    I am very pro-"keep blogs as simple SSGs" so I'm all for this. And it makes me want to noodle on other ways to implement it without requiring some of the steps you have. Hmmmmmmm.

  • turpelurpeluren

    January 24, 2024 at 9:19 AM

    Yeah! That is a smart approach! Nice to not need third party comments or host your own server. I feel like it would be nice to not have to commit the repo manually for every comment tho, but it sounds like it could be possible with the Api..:)

  • Mia

    February 2, 2024 at 6:44 PM

    Awesome tip for getting comments working with a static site. Also wanted to say that your blog design is fantastic!!! I love the colours and I haven't seen a mouse train in ages

  • Chad

    February 7, 2024 at 2:44 PM

    Thank you! Inspired by this article, I just implemented my own AI-moderated Astro comment system.

    An SSR script adds saves comments temporarily to a Vercel DB (and displays the comment to the person posting immediately).

    Then, periodically, a cron grabs the new DB posts sends them to OpenAI for moderation and then merges the ai-approved comments into Github (using an Astro data-collection for comment JSON files). Merging into Github triggers a rebuild/redeploy on Vercel.

    Fully static Astro site with comments and AI comment moderation.

  • Kevin Spencer

    February 9, 2024 at 10:26 PM

    This is great.

    I love stumbling across a new blog and being able to leave a comment. The reasons a lot of bloggers don't want the hassle of it I completely understand. But it's a great way to foster a conversation around a post without hunting for an "email me" link.

  • Rizqi Fahma

    May 1, 2024 at 8:25 AM

    Glad to hear that there's this article about adding comment on Astro blog as it is not that easy to find.

  • Mahmoud

    May 20, 2024 at 11:35 AM

    That Cool

  • Rafael

    June 30, 2024 at 11:40 PM

    Great! Thanks for sharing!

  • mike

    August 7, 2024 at 10:30 PM

    Interesting Approach to Comment Management

    This is a really interesting solution! I appreciate how you found a way to maintain the efficiency and simplicity of static site generation while incorporating a comment system. The use of Netlify forms and a custom approval app is a clever approach.

    Some Thoughts

    • Netlify Forms: Great choice for handling form submissions without adding much overhead.
    • SvelteKit App: Clever way to review and approve comments.
    • Static Site Generation: Maintaining SSG while adding comments is impressive.

    Have you considered using a headless CMS to manage the comments? It might offer a more streamlined way to handle content updates and approvals.

    Future Enhancements

    I would like to see a similar way to do it without relying on Netlify

    Thanks for sharing your process! Looking forward to seeing how this evolves.

  • Cold

    August 29, 2024 at 11:03 AM

    Great Article

  • kik

    September 4, 2024 at 4:08 PM

    h3ll0

  • Jan åke

    September 11, 2024 at 7:59 AM

    Great!

  • evie

    September 29, 2024 at 8:18 AM

    that's sick! i used this as a basis for building my own comments stuff, although it uses an actual database. but it still came with some useful ideas!

  • Dillah

    October 12, 2024 at 5:41 AM

    Awesome

  • Blake T.

    October 24, 2024 at 4:03 AM

    Cool

Leave a Comment