# Including comments on your self-hosted Jekyll site

**URL:** <https://talk.jekyllrb.com/t/including-comments-on-your-self-hosted-jekyll-site/5423>\
**Category:** Uncategorized\
**Created:** [December 30, 2020, 7:16pm UTC](https://talk.jekyllrb.com/t/including-comments-on-your-self-hosted-jekyll-site/5423 "2020-12-30T19:16:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddavid](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@ddavid](https://talk.jekyllrb.com/u/ddavid)\
**Post date:** [December 30, 2020, 7:16pm UTC](https://talk.jekyllrb.com/t/including-comments-on-your-self-hosted-jekyll-site/5423/1 "2020-12-30T19:16:55Z")

</div>

This is a rambling article and is super hacky.

It is ONLY for self-hosted setups and won’t work with github pages. But it’s easy and it works 🙂

[https://thecrow.uk/comments-on-a-self-hosted-static-site-its-simpler-than-you-think/](https://thecrow.uk/comments-on-a-self-hosted-static-site-its-simpler-than-you-think/)

Hopefully it’s useful to someone

Sorry / Not sorry

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [December 31, 2020, 7:08am UTC](https://talk.jekyllrb.com/t/including-comments-on-your-self-hosted-jekyll-site/5423/2 "2020-12-31T07:08:00Z")

</div>

Interesting take. I haven’t used Disqus for comments but I can understand your custom process.

You use your access logs to get messages from users then manually add that to a YAML file and rebuild daily. (Covering that entire flow in the first line of the post would also be nice summary)

Some ideas for you.

One is that you could use a form that submits an email to you. Netlify has form feature builtin and they handle stuff like removing spam.

And the other thing is for a nicer experience on your current flow, instead of sending the user to

```auto
https://thecrow.uk/COMMENT your site sucks and I hate you so much. Just go away and die

```

You could send them to thank-you.html or comment-submitted.html and put the details in query params

```auto
https://thecrow.uk/thank-you.html?comment=your site sucks and I hate you so much. Just go away and die

```

And I would percent encode the URL in JS to convert spaces to %20. And newline, `?`, `#`, etc. to encoded characters.

If you don’t want to check Apache, you could use Google Analytics to view the request URLs.

---

<div class="post-metadata">

**Author:** ![ddavid](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@ddavid](https://talk.jekyllrb.com/u/ddavid)\
**Post date:** [December 31, 2020, 11:26am UTC](https://talk.jekyllrb.com/t/including-comments-on-your-self-hosted-jekyll-site/5423/3 "2020-12-31T11:26:16Z")

</div>

Again, You’re correct - I ̶s̶h̶o̶u̶l̶d̶ ̶r̶e̶a̶l̶l̶y̶ now have a TL;DR at the top.

Your other suggestions are solid and may be taken up by someone else who stumbles across this thread. For me, I’m pretty happy 🙂
