Skip to content

Comment on Building a blog from scratch in 2022 using Hugo, Docker and a bit of Python

Comments

While this is a good tutorial, I don't think that docker or python is even required. The main benefit of hugo is, that it comes as a single binary for every OS that can be downloaded and executed without any dependencies.

The contact form is cool, but for a simple blog I think that it is enough to just provide an email address, which is obfuscated as SVG paths and therefore not extractable. Although it is nice to have a real contact form to hide your email address from visitors.

You should also consider using a partial for the render-image.html to be more flexible in templates.

See https://pilabor.com/blog/2021/05/building-a-blog-with-hugo/#... for details.

The contact form is cool, but for a simple blog I think that it is enough to just provide an email address, which is obfuscated as SVG paths and therefore not extractable. Although it is nice to have a real contact form to hide your email address from visitors.

Or just add the address. I have a mailto link (no obfuscation or anything) on my page (that nobody visits anyway, but I believe Google has it). I think I have never received a single mail to this alias, spam or otherwise. (YMMV of course.)

At the very least, I really suggest you use an email alias that you can filter or burn by if necessary. If you ever post a link to your site to something like HN or Reddit, you absolutely will get tons of spam and once you're on a list somewhere, you'll never ever get off of it.

And no, Google's tag+name@gmail.com system isn't good enough - any spammer worth their salt will strip those.

Absolutely... usually the site is hosted on a domain "domain.tld" and i tend to use something@domain.tld as redirect, which may be redirected or filtered.

I agree about the google part, although google mail is NOT my chosen provider any more :-)

I have my regular email address on my blog, and I've had posts on HN and Reddit many times without getting spammed.

My email address is on my site and YT channel and I don't have that problem.

obfuscated as SVG paths and therefore not extractable

Off-topic but I’ve found that it’s a lot better to just use a spam filter than to constantly try and hide my address. I’ve signed up to countless services that have gotten hacked and exposed my email, so the cat’s out of the bag - my email is out there. There is no chance of avoiding spam.

Yeah that's correct, but the "better use redirect emails" comment above is also valid. If you keep your email as private as possible, it might reduce the amount of spam, which is usually a good thing.

Yes, I guess nginx and a little bit of rsync is enough. This is the big selling point of static site generators like Hugo.

I tend to use rclone, but I also try to keep it as easy as possible.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.