Adding or updating posts in Hugo is easy. After all, content management is one of the framework’s primary features. My wife has little interest in understanding the software development side of blogging. Even she finds it effortless to add blog posts in markdown and half-a-dozen images per post through GitHub.
Directory structure In Hugo, posts go into the content folder which will be in the root directory of your site. Some theme’s may have varying patterns....
Create a Hugo site After installing Hugo, I was ready to start on the blog. I have a directory (or “folder” for Windows folks) on my laptop for software development projects. Most of these projects are also hosted in my GitHub account.
I navigated to that directory and created a folder called food-blog. Inside food-blog, I ran Hugo’s command to start a new site.
hugo new site food-blog In the screenshot below, you can see that the new Hugo site was created successfully....
To begin working on the blog, I needed to install Hugo first. My laptop runs Pop_OS!, a Linux distribution based on Ubuntu. There are quite a few ways to install Hugo and I chose to install the official package using apt-get.
sudo apt-get install hugo Once the installation was complete, I verified that it completed successfully.
hugo version As shown in the screenshot below, Hugo version 0.74.3 installed successfully on my machine....
My wife and I have always wanted to work on an online project together. She is creative, and I can figure out technology. A multitude of reasons pushed us to start a blog in early 2021.
My hunger for a software-dev-related side project A desire to digitize our growing three-ring recipe binder Repeated requests for the same recipes (mostly Thai Red Curry and Butter Chicken) from friends and family It was easy to devise requirements as we thought through different features (blog setup, adding posts and pictures, monetization, etc....