Build a modern workflow: write in Markdown, generate HTML, deploy with one command
Traditionally, you write raw HTML for every page. A static site generator (SSG) lets you write in Markdown — a simple, readable format — and converts it to HTML automatically. You define templates once, and the SSG applies them to every page. The result is a folder of plain HTML files that any web server can serve instantly.
Hugo is a single binary with no dependencies. It builds thousands of pages in milliseconds. It uses Go templates for layouts and has built-in features like image processing, RSS, and multilingual support. For this lesson, we use it because it is the fastest to install and run.
If you do not have Homebrew, install it first from brew.sh
http://localhost:1313 in your browser-D includes draft postsHugo reads your Markdown files, applies the theme templates, and outputs a complete public/ folder of HTML, CSS, and assets. This folder is your entire website — no server-side processing needed.
public/ folder with all generated files-r copies recursively (all folders and files)/var/www/blog/ is the DocumentRoot from Lesson 4blog.yourdomain.comPaste this inside:
baseURL is set to your domaindraft: true are excluded unless you use -D