Crafting This Blog with Hugo
Welcome to the story behind this blog, brought to life with Hugo - a speedy and versatile static site generator.
Hugo
Hugo, a nifty tool written in Go, makes building websites a breeze. It’s fast, flexible, and dead simple.
Installing Hugo
First off, grab Git and then install Hugo.
On Linux
If you’re on Linux, using the Snap package manager is a swift way to get Hugo:
sudo snap install hugo
Snap usually keeps Hugo updated compared to other package managers.
Installing a Theme
After installing Hugo, choosing a theme is the next step. Themes define the visual appearance of your website.
https://themes.gohugo.io/
To install a Hugo theme, navigate to your project’s root directory and use Git to clone the theme repository. For example:
cd your_project_folder
git clone https://github.com/your-theme-repo.git themes/your-theme-name
Remember to replace your-theme-repo and your-theme-name with the actual theme repository and name.
Creating Your Site
Initialize a new Hugo site with the command:
hugo new site your_site_name
This creates a new directory named your_site_name containing the basic structure for your site.
Running the Development Server
Start the development server to preview your site:
hugo server -D
This command launches a local server at ‘http://localhost:1313’, allowing you to view changes in real-time.
Deployment with GitHub Pages
Lastly, this blog is deployed using GitHub Pages, a convenient way to host static websites directly from a GitHub repository.
Once your Hugo site is ready, push it to a GitHub repository and enable GitHub Pages in your repository settings.
Inspiration
This blog draws inspiration from the Lilian Weng’s Blog and was nudged into existence by the guiding force of Ayyzenn Pi🐧 😅.