First Blog - Getting Started with Hugo

About Hugo#

This website was easily created using Hugo - The world’s fastest framework for building websites.

Hugo Quickstart and Installation#

To install Hugo on your macOS (using Homebrew)#

Pre-requisites:

  • Ensure that you have Homebrew installed on your macOS prior to continuing.

With Homebrew installed, you can directly install Hugo by running:

brew install hugo

Validate hugo is installed:

hugo version

Create new site#

To create a new site:

hugo new site <site-name>

Then add a theme for your site:

cd <site-name>
git init
git submodule add https://github.com/jakewies/hugo-theme-codex.git themes/hugo-theme-codex

In my case, I used the theme hugo-theme-codex .

Follow the corresponding theme’s page to get specifics on theme configurations.

Create new blog post#

For my theme-specific instructions, to build a post

hugo new blog/<name-of-blog.md>

To publish the blog, you must set draft: false in the blog’s markdown file.

Start Hugo server#

From your site’s directory, start the Hugo server

hugo server -D

Resources#

  1. Hugo
  2. Hugo Quickstart
  3. Hugo - Codex Theme

© 2022