I recently moved my blog over from Wordpress to Hugo. I think it must be a lot easier to start out from scratch than to migrate something existing; some parts of Hugo are substantially less than straightforward.<p>I certainly don't regret the move - much happier having a static site than WP in place - but some of this is much more complex than I had hoped it would be. Amongst other issues;<p>* error messages can be extremely opaque (although usually easy to google, at least)
* upgrading to new versions is not always straightforward<p>I deploy my site via rsync, but got bitten immediately by a very odd bug with respect to file timestamps (#6161) where a bunch of my files were warped back to the 1750's.<p>I personally am happy with hugo. I probably wouldn't recommend it at this point though...
The 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.<p>I am interested to hear the consensus from HN users as to which is better, and why.
I keep wanting to use Hugo, and I have made a few attempts.
Moving away from Wordpress and its problems would be good.<p>I do think a few features are missing that I find valuable:<p>* 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 using forum software for the
comments but then I have to run that and I might as well stay
in WP<p>Then there are a few plug-ins I use and like.<p>The worst part of using WP is of course security.
I have switched to fully managed WP hosting so I dont have to worry too much about that. I do still worry about plugins but my provider does not allow a lot of plug-ins due to issues and I can totally appreciate that.
There is no lack of technical choices when it comes to starting a blog. I can start five blogs in the next 30 minutes, each one on a different platform/infrastructure.<p>What I <i>do lack</i> is something interesting to write about, in a consistent manner. I have been writing code for a long time. I did build some interesting stuff. I'm currently working on a startup that does use some blog-worthy tech: any attempt ends up with very long essay-shaped posts, which are extremely time-consuming to write and frankly not so interesting.<p>Any suggestion on how to find a niche and consistently write about it?
> Don’t try to be clever by using a localized domain, don’t use .io. .com just gives a better impression...<p><a href="https://gohugo.io" rel="nofollow">https://gohugo.io</a> - Hugo website<p>> My suggestion is to avoid subdomains completely.<p><a href="https://themes.gohugo.io" rel="nofollow">https://themes.gohugo.io</a> - Hugo themes<p><a href="https://discourse.gohugo.io" rel="nofollow">https://discourse.gohugo.io</a> - Hugo forum<p>Hmm
Anyone looking for a static blog but that wants a decent interface for editing, check out forestry.io. once setup, it commits to GitHub for you, your user is none the wiser. If the service ever goes away, you still have your blog in GitHub. And you can deploy anywhere (s3, netlify, etc). I use this setup for my non technical wife.
Is there a web-based editor that can be used together with these static site generators?<p>This editor should be small, self-contained and secure and could be located in a separate access-restricted area of the site.
And if you want to do it from inside Emacs/using org-mode, see: <a href="https://ox-hugo.scripter.co/" rel="nofollow">https://ox-hugo.scripter.co/</a>
I've been using Hugo for a few years. I like it generally, but I have mixed feelings about using Go for templating. Compilation and generation is blazing fast, which is great for short edit-compile-debug cycles.<p>On the other hand, Go's lack of generics makes working with collections harder than it should be... and much of templating involves working with collections.<p>To give a concrete example, I wanted to create a page where I group categories by post count. Hugo has methods to group <i>pages</i>, but not categories, so I rolled my own imperative grouping code. It wasn't difficult, but it would have been simpler to do declaratively in many other ecosystems (say, .NET with LINQ).
I moved from WordPress to Hugo last year and dont regret it. If you search for some configuration examples for multi-language blogs and some shortcodes for image generation and so on, feel free to check out the blog post about it.
<a href="https://blog.kovah.de/en/2019/static-blog-with-hugo/" rel="nofollow">https://blog.kovah.de/en/2019/static-blog-with-hugo/</a>
Source is available on Github: <a href="https://github.com/Kovah/blog.kovah.de" rel="nofollow">https://github.com/Kovah/blog.kovah.de</a>
I 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
I've a few sites on Hugo. If you're not an active developer (like me) you can deploy a site from a Netlify template and tweak from there. So pretty much the opposite of "zero to deployment" - gives you something working to start with.<p><a href="https://templates.netlify.com/template/hugo-starter-blog-theme-kaldi/" rel="nofollow">https://templates.netlify.com/template/hugo-starter-blog-the...</a>
Very nice and detailed tutorial! I like also other content on your page and bookmarked your blog :)<p>I created a similar post a while ago, might be interesting for some who want to use GitLab instead of GitHub + Netlify:<p><a href="https://tkainrad.dev/posts/using-hugo-gitlab-pages-and-cloudflare-to-create-and-run-this-website/" rel="nofollow">https://tkainrad.dev/posts/using-hugo-gitlab-pages-and-cloud...</a>
I've been using Hugo for a few years now. Pretty long to set up if you want to addapt one of the available templates to suit your needs, but then it's really great!<p>I would not advise it to a non-programmer/tech savvy person though.
When comes to static site, I found that MkDocs[1] is easier to use. I like when I use it with Material theme[2].<p>[1]: <a href="https://www.mkdocs.org/" rel="nofollow">https://www.mkdocs.org/</a>
[2]: <a href="https://squidfunk.github.io/mkdocs-material/" rel="nofollow">https://squidfunk.github.io/mkdocs-material/</a>
I use Hugo for my website too! Highly recommend.<p>I also put together a video tutorial of how I set up my CI/CD pipeline to deploy to AWS using Terraform.<p><a href="https://devbrett.com/videos/2018-07-22-static-website-terraform/" rel="nofollow">https://devbrett.com/videos/2018-07-22-static-website-terraf...</a><p>The whole site costs me about 50c a month on S3 + Cloudfront.
I run my blog <a href="https://www.lewis8s.codes" rel="nofollow">https://www.lewis8s.codes</a> on AWS Amplify. It connects to a GitHub repo and builds it every time there is a commit to master. Uses CloudFront on the backend too.<p>Costs me around $0.01 per build which isn't bad. Just easier than writing my own script.
Off-topic: Any advise on how to migrate a Jekyll blog to Hugo?<p>Is it practical to keep the rendered HTML as static pages, and just use hugo/markdown for new posts?<p>Migrating the markdown files to hugo looks like a pain.
Header files need to be migrated.
Also jekyll plugins will obviously not work.<p>Might be better to just leave the old stuff as-is...
Hugo is a great tool. I use it with my small project's websites for easily changing the content and getting hosting for nearly free.<p>Just adding new posts, push the repo and let the build and deployment scripts do their thing.<p>And - don't forget - the less dynamic your site is the less attractive it becomes for the bad guys.
Shameless plug: I built <a href="https://typehut.com" rel="nofollow">https://typehut.com</a> as a simpler alternative to classic blog and publishing systems. It's super easy to get started and it has some nice things like email subscriptions built-in.<p>If anybody tries it out let me know!
I am currently moving from WordPress to Hugo, so your tutorial arrived just in time. Are your posts part of the content of your ebook series? Just asking in admiration of your frequency of daily new posts.