Overview

As a static web site generator, hugo takes the site structure and the site content (in markdown format) and generates the complete web site. The web site - HTML, CSS, JS in a directory structure - is then copied to the web server. The web server then only serves static files, with no need to invoke scripts or to access a database.

Static Site Generator

As a static web site generator, hugo takes the site structure and the site content (in markdown format) and generates a static web site:

flowchart LR
    content[/"Site Content (Markdown)"/]
    structure[/"Site Structure (HTML, CSS, JS)"/]
    hugo["`
    **HUGO**
     ⚙️ `"]
    website[/"Complete Website with Content 
    (HTML, CSS, JS)"/]
    content & structure --> hugo
    hugo --> website

Why?

Very simply said, Hugo solves the problem every web site (consisting of more than one page) has: Combining an overall Site structure, such as Header, Footer and especially a uniform Navigation, with the Site Contents.

H N F e a o a v o d . t e e r r C o n t e n t

Simple Site Structure

While Header, Navigation and Footer should stay stable, the Content needs to be replaced:

H H F e A B C o a o d t e e r r C o n t e n t H C o n t e n t A C o n t e n t B C o n t e n t C

Combine Content Pages with Site Structure

This is, of course, a simplification. Note that I summarize site layout and css as site structure.