I would not advise it to a non-programmer/tech savvy person though.
How to start a blog using Hugo
21–30 of 111 posts
Re: How to start a blog using Hugo
#22I keep wanting to use Hugo, and I have made a few attempts. Moving away from Wordpress and its problems would be good. I do think a few features are missing that I find valuable: * Search (you can add it as an external service I haven't found one I trust and like yet. * Comments, there are several third-party comment providers that I can use, I tried out Disqus for a while but I didnt like nor trust them. I look at u…
For search I generate a JSON array, with the name and the url to each post. Then I just client side javascript to search them. It adds a small traffic overhead, but users said they really like the search - it is instant and uses fuzzy matching algorithm.
Here is the code I use to generate the array: https://github.com/Stanko/Stanko.github.io/blob/master/_incl...
For comments I use staticman (https://staticman.net/), and it is brilliant. Instead of having a 3rd party comment system, it will issue a pull request to your repo. You can set it to automatically merge PRs or to merge them manually (and moderate them).
The only problem is that because of changes to the GitHub API quotas, their public instance gets overloaded. But you can easily setup your own instance. I use heroku, and their free tier is more than enough for my usecase (I get more than 100k users a year).
I even wrote a short post how to set it up on heroku: https://muffinman.io/running-staticman-on-heroku/
Hope that helps, happy hacking!
Re: How to start a blog using Hugo
#23Re: How to start a blog using Hugo
#24I like the idea of static blogs. However, I didn't accomplish to find a great workflow to use hugo from my android phone while traveling. Using git on a phone is a pain
Re: How to start a blog using Hugo
#25Re: How to start a blog using Hugo
#26I am interested to hear the consensus from HN users as to which is better, and why.
Re: How to start a blog using Hugo
#27Earlier quoted context omitted.
Similar issues from my side. Cryptic documentation, bad dissorganized forum and configuration,... I love the hugo idea but to find one detail you will get into chaos of strange wording and noise. I am using it but I try to configure as small amount as possible as I always get into some undesired behaviour. It seems like it was from begining build with idea and then continued by patch over patch over patch. Cant recom…
I decided I would make a static site the old fashioned way on neocities.org and happily got started. And then I remembered all the double work you have to do linking and making lists and repeating headers/footers (or use frames) and so on. Now I'm back to looking for some simple script that can output static sites without having to spend a month learning a new tool...
Re: How to start a blog using Hugo
#28The author seems adamant that blog.domain.com is a worse setup than domain.com/blog - I've seen this argument go back and forth a lot, with both sides claiming advantages and disadvantages. I am interested to hear the consensus from HN users as to which is better, and why.
The basic distinction, from a purely SEO perspective, is that blog.domain.com will be treated as its own entity whereas domain.com/blog will be treated as part of the main domain.com entity.
The question you have to ask yourself is whether you want to bolster the "value" of your main domain or if you want your blog to be an asset in its own right.
There is no right or wrong answer — there is simply what's best for your situation.
Re: How to start a blog using Hugo
#29The author seems adamant that blog.domain.com is a worse setup than domain.com/blog - I've seen this argument go back and forth a lot, with both sides claiming advantages and disadvantages. I am interested to hear the consensus from HN users as to which is better, and why.
- You don't have to add and manage subdomain
- You don't have to stop and restart the reverse-proxy of your VPS
- Only one cert to deal with (I use traefik w/ automatic LE renewal but that implied more things to set up on the chain)
But I still use blog.domain.com because I find it prettier. And when I need to type it in the URL bar it's just $service.domain.
Now the SEO crowd has other requirements that make their choice more valid than my own (one user, one set of idiosyncrasies).
Re: How to start a blog using Hugo
#30The author seems adamant that blog.domain.com is a worse setup than domain.com/blog - I've seen this argument go back and forth a lot, with both sides claiming advantages and disadvantages. I am interested to hear the consensus from HN users as to which is better, and why.
For your blog, it doesn't matter. You can hard-code the entire URL in every link and it will probably never go wrong. Applications are harder. Applications that various people are going to self-host are hardest.