Hugo is a fast and modern static site generator written in Go, and designed to make website creation fun again. Websites built with Hugo are extremely fast and secure.
Hugo sites run without the need for a database or dependencies on expensive runtimes like Ruby, Python, or PHP.
# Organisation
Hugo 0.32 announced page-relative images and other resources packaged into Page Bundles - gohugo.io
# Getting started
A predefined variable could be a variable already existing in the current scope (like the .Title example in the Variables section below) or a custom variable (like the $address example in that same section) - gohugo.io
{{ .Title }} {{ $address := "123 Main St." }} {{ $address }}
The custom variables need to be prefixed with $.
- See Hugo Variables
# Functions
Hugo template functions provide additional functionality specific to building websites. Functions are called by using their name followed by the required parameters separated by spaces. The following example calls the add function with inputs of 1 and 2:
{{ add 1 2 }}
- Methods and Fields are Accessed via dot Notation
Parentheses Can be Used to Group Items Together
{{ if or (isset .Params "alt") (isset .Params "caption") }} Caption {{ end }}
- See Hugo Functions
# Tutorials
Here is a nice simple tutorial:
- Minimal Hugo Site - arunrocks.com
- Make a Hugo blog - zwbetz.com
- Simple hugo site
An alternative solution for open source project might be prismic.io.
# See also - Creating a Hugo website - Hugo contents - Hugo Themes - Minimal Hugo - Hugo Data Templates