Base Templates and Blocks
The base and block constructs allow you to define the outer shell of your master templates (i.e., the chrome of the page).
Read More »
Content Organization
Hugo assumes that the same structure that works to organize your source content is used to organize the rendered site.
Read More »
Hugo's Lookup Order
The lookup order is a prioritized list used by Hugo as it traverses your files looking for the appropriate corresponding file to render your content.
Read More »
Introduction to Hugo Templating
Hugo uses Go’s
html/template
and text/template
libraries as the basis for the templating.
Read More »
Install Hugo
Install Hugo on macOS, Windows, Linux, FreeBSD, and on any machine where the Go compiler tool chain can run.
Read More »
Directory Structure
Hugo’s CLI scaffolds a project directory structure and then takes that single directory and uses it as the input to create a complete website.
Read More »
Configure Hugo
Often the default settings are good enough, but the config file can provide highly granular control over how your site is rendered.
Read More »
Comments
Hugo ships with an internal Disqus template, but this isn’t the only commenting system that will work with your new Hugo website.
Read More »
range
Iterates over a map, array, or slice.
Read More »
title
Converts all characters in the provided string to title case.
Read More »
with
Rebinds the context (
.
) within its scope and skips the block if the variable is absent.
Read More »