I already have my opinions. Why in your opinion is Hugo a great choice?
[See discussion: https://discourse.gohugo.io/t/cool-sites-that-run-hugo/36815
I already have my opinions. Why in your opinion is Hugo a great choice?
[See discussion: https://discourse.gohugo.io/t/cool-sites-that-run-hugo/36815
Static websites do not require regular maintenance like Wordpress, for example. And Hugo, for example, generates my blog with over 400 articles in no time.
Agreed, though Hugo is still in active rapid development, which does offer fortunately various changes and improvements.
Your point about number of articles and generation time would be better made with a comparative reference. One could, for example, write a node script that processes various markdown files into 400 articles in also a reasonable amount of time.
Not that Iām complaining, I selected Hugo because itās easy to manage files on the backend with text-editor, and generate schedules posts/pages computationally at scale.
Moreover, Hugo has now a lot of capability baked into it making it easy to use once you know how to use it [example: fingerprinting, minification, post-processing, etc.]
The primary short-coming (if you consider it a short-coming) is that Hugo doesnāt come with an easy-to navigate front-end. The companies that are using Hugo are typically big enough to have a trustworthy internal development team. Then there is a jump down in size by number of persons to tech-minded bloggers. Small and medium-sized businesses are wary because it causes them dependency on one developer or small sub-set of developers, similar to react, but unlike wordpress.
Next, it is already surprising wordpress doesnāt offer a static website option - just a toggle for any given page for example, āgenerate static yes, noā could short-circuit all of the server side activity for any single request.
It seems inevitably, because of scale, Hugo front-end desktop/web application pairs will advance toward optionally wordpress style management, where files in directories are operated on like data bases by the generating system (bundled advanced query and search programs - grepping or whatever).
While I prefer using text-editor and system programs to manage files, a more advanced Hugo front-end would solve this, and eventually the incorporation of dynamic website capability (rather than the current totally feasible reliance on third-party services).
Isnāt this what āpancakesā was about? How is that coming along?
for me, itās about reducing resource requirements and future proofing. I can generate all of my site in about 10 seconds worth of computer time on a laptop, and rsync it to my server in about 30 seconds. once my siteās published, itās stable. No dependencies on things like PHP and MySQL versions. As long as something is able to act as a webserver, itās good to go. previously, I used WordPress and it was taking say 250ms to generate each page from the database for each pageview. Added up, thatās orders of magnitude more compute power needed to run the same website, and it was fragile (plugins out of date? siteās down. PHP updated and broke something? siteās down. MySQL gets throttled? siteās down. etc.)
Low cost of operation / maintenance.
The ability to do custom stuff on the fly with relative ease.
But the biggest thing for me, no dependencies.
As a DIY person with non-dev experience, I wanted to try something new apart from Jekyll and also to test the build times. I have moved one site over so far, but it was a painstaking process and the docs are not beginner-friendly compared to Jekyll. Took over three weeks to get things running. I will stick this site with Hugo for now, but the others will be on Jekyll and Eleventy as I monitor the growth of Hugo in the next few years.
Lotās of great points so far. Build time, single binary (few dependencies), low maintenance seem to be consistent across responses.
Lightening build time is probably the reason Hugo exists in the first place. I.e., how to take advantage of these pretty impressive go features; examples, goroutines, go stacks, garbage collection - basically the language nuances that offer more flexibility than C++ without disadvantages.
It is ironic, however, that file based directory structure is exactly what brought php mainstream in the first place (or so I understand). UseModWiki was perl based with flat files stored in standard directories, Wikipedia Phase 11 and 111 added relational database and php to enable more efficient management at massive scale. One of Hugoās main pitch points is efficient management at massive scale, but without relational database.
Faster processors, multicores, ssd, etc should mean you can now manage at scale without relational database, but you lose single binary advantage (you already need other programs to manage your markdown files). That should be a key concern for developers of Hugo compatible front-end software.
Other than promise of efficient management for big footprints, I selected Hugo because it was said to integrate nicely with emacs, which it does. In emacs you have org-mode, which offers literate programming, so you can store all of your hugo files in generator files, where you can manage them with searchable notes. Kind of like a manual and a front-end interface all in one. However, elisp at scale is bunk. Better then to use Hugo archetypes and makefile commands. So what Iām doing currently is generating org-mode files from node programs that read json files, because org-mode offers such savvy file management. This is more than efficient, but admittedly not so at scale.
At scale you want the site to build fast, but maybe these cms should only build what is necessary. Keep a block chain registry of what has changed (or in wordpress case, what code is associated with request), and just load or build that. Note, again, not a complaint - wordpress has 10 year development head start over hugo, hugo is likely to advance a lot in the next 10 years
I shouldnāt know anything about your programming experience, but with respect to Hugo, I recommend learning to troubleshoot code early, also putting extra attention into everything between the <head>
tags. Definitely read this: https://github.com/kaushalmodi/hugo-debugprint
Hugo aside, static sites are safer (in terms of attacks, hacking) and require less server fiddling for optimal performance. So you can use a server will less RAM. Space requirement is smaller too.
Hugo specific, it has good resources and a good community. With some others you are pretty much on your own.
Hugo is amazing! But how much you like it depends on what you value.
If you like to Keep It Super Simple, then Hugo is for you.
hugo new mysite
sets up Hugo in about a second. No long ass NPM setup needed.Hugo builds are lightning fast
Forget about WordPress and other bloated or restrictive platforms.
I love JavaScriptābut a JS framework is overkill for what I need.
Hugo builds a static site. That means SEO by default.
Again, Hugo creates a static site. After you launch the site, nothing changes from underneath you.
Every platform has itās own trade offs. For me, Hugo makes it simple and powerful to develop a website and organize content. Forestry makes Content Management easy and powerful. Cloudinary is awesome for managing images. Netlify handles all the other hosting needs I have. Hugo is not a bloated solution for all possible needs. Itās a simple, fast and powerful tool for static site generation that letās you decide how you want to apply it.
Based on all the beer websites itās clear Hugo sells Though if you run anheuser-busch.com through Lighthouse, performance can score at 29.
Also managing inventory requires some developer ingenuity. Having said that, everything you said here is pretty much true.
Once youāve built with Hugo and put together some sexy code for navigating usual web master scenarios, it kills Wordpress.
With Wordpress you have to finagle the interface too often. Even if you build the site with clean html and scss then import it, you have to toggle everything and mess around , and thatās before other advantages.
Your points are solid imo
And the Javascript point is clean also. There are a lot of cool frameworks that add more complexity than advantage. Even Alpine, which is super minimal isnāt that much of an advantage.
Have a look at your handy work! Some of your response were incorporated into the following promotional post
https://buildhello.ca/space_ex_light/2022-02-10-why-should-we-build-our-website-with-hugo/
Donāt forget to leave a comment on that webpage! Any things about Hugo I missed would look great on there.
If you post a link to your site in the comments, please include a rel=ānoopenerā in the tag
I was attracted by its fast builds. But I have only moved one site and I donāt plan on doing the same in the near future. Hugo is hard to learn, not friendly to those just beginning to learn SSGs and the documentation could use a lot of fine tuning to be understandable.
Haha! I actually built an earlier version of anheuser-busch.com about 12 years ago. I changed it from Flash into a static site for better performance and SEO. I wish I had Hugo back then.
Kudos for early adoption. I feel often like one, but my 8 years feel like nothing compared to yours
Also 8 years, but not with Hugo
I posted both anheuser-busch.com and busch.com to buildhello.ca.
If you built either of those, you probably know theyāre looking pretty good , but lighthouse scores are low on both. I know, owners arenāt jumping a lot on the lighthouse scores, but there is something about getting at least performance and seo into the green, and as I understand google is rewarding high scores.
Looks like image conversion issues, among other things. I kind of lucked out on my first try with Hugo image stacking and came up with something super decent, both for templates and short-codes. At scale could be admittedly a little dryer, but even quick and dirty would boost those scores
@cloud-nine - I have nothing to do with the latest versions of AB.com and Busch.com. Years after I left AB, they then rebuilt both sites to use WordPress. They had remained on WP for years. I was happily surprised to see that it had been redesigned again to use Hugo.
I agree that Lighthouse scores are important. I love how Hugo leaves all of this up to the developer though. I hate how WordPress handles all of this. As far as images go, Iām a huge fan of using Cloudinary to manage all of the image based performance needs. If you use Forestry.io as a CMS with Hugo, then you get the Cloudinary integration with it.
I recently gave Cloudflare a go on an old site with a bunk host and it visibly lifted the performance and added ssl and brotli compression = awesome.
Havenāt given Cloudinary a go yet, read and ripped your post about third-party hosting 1000 images though!
Once I realized Github Pages comes with its own CDN (or someone elseās) and gzip compression, I left it alone.
The only thing I dislike about Github Pages is no custom .htaccess file.
Iāve yet to give forestry.io a go yet. As as soon as needed, I will have a look at all of the currently available front-end products and write a comparative review on Build Hello.
Build Hello has some cool article formats with room for tech company advertisements on the sides. I used a variation of the pancakes system to configure custom advertising templates based on content grouping, but have yet to court sponsors!
Main things Iām looking for out of a front-end however include, off the top of my head: