Grumpy Gamer

Ye Olde Grumpy Gamer Blog. Est. 2004

Sep 6, 2025

“But? Wait?” I can hear you saying, “Isn’t grumpygamer.com a static site built by Hugo? What dark magic did you use to get comments on the static site?”

No dark magic. But it does involve a small php script.

You can embed php in a hugo page and since grumpygamer.com is hosted on my server and it’s running php it wasn’t that hard.

No tricky javascript and since it’s all hosted by me, no privacy issues. All your comments stay on my server and don’t feed Big Comment.

Comments are stored in flat files so no pesky SQL databases. It only took me about a day, so all in all not bad.

I may regret this.

I’m only turned on comments for future posts.

Be nice!

P.S. I will post the code and a small guide in a few days, so you too can invite the masses to critic and criticize your every word. Good times.


Comments:

Guybrush 3h ago
Wow! I missed comments.
Bryan 2h ago
I hope you never end up needing to add a CAPTCHA.
Anonymous 2h ago
Can I add a comment without filling in other fields
Denny 2h ago
Nice.
Recently, I read some Thimbleweed Park dev diaries (playing the game AGAIN atm). It was nice to see the interaction between you and the users in the comments.
Ron Gilbert 2h ago
I missed that too. Mastodon is nice, but it's very fleeting as you scroll by.
Jim 2h ago
Never read the comments.
Anonymous 2h ago
I need something like this on my static site too.
Jimbob McG 2h ago
I did something like this once for our game jam site. When the bots discovered it, the postings wouldn't stop. I wish thee better luck.
Vamp898 1h ago
Uuuh nice, whats next? A guestbook? :P
Anonymous 1h ago
Thanks Ron
Anonymous 1h ago
Om 1h ago
"I may regret this"

😂😂😂 Yeah dot .. yeah you might 🙂

If the internet is consistent in one regard, it's this one 😬
Stan 1h ago
I've got just the boat for you @ www dot stanspreviouslyownedvessels dot com Promo code: LAESPONJAGRANDE10 I don't answer to voodoo dm.
Anonymous 45m ago

Add comment: