Introduction to templating
Create templates to render your content, resources, and data.
Read More »
Template types
Create templates of different types to render your content, resources, and data.
Read More »
Template lookup order
Hugo uses the rules below to select a template for a given page, starting from the most specific.
Read More »
Base templates
The base and block construct allows you to define the outer shell of your master templates (i.e., the chrome of the page).
Read More »
Home templates
The home page of a website is often formatted differently than the other pages. For this reason, Hugo makes it easy for you to define your new site’s home page as a unique template.
Read More »
Single templates
Create a single template to render a single page.
Read More »
Section templates
Use section templates to list members of a section.
Read More »
Taxonomy templates
Create a taxonomy template to render a list of terms.
Read More »
Term templates
Create a term template to render a list of pages associated with the current term.
Read More »
Partial templates
Partials are smaller, context-aware components in your list and page templates that can be used economically to keep your templating DRY.
Read More »
Content view templates
Hugo can render alternative views of your content, useful in list and summary views.
Read More »
Create your own shortcodes
You can extend Hugo’s embedded shortcodes by creating your own using the same templating syntax as that for single and list pages.
Read More »
Sitemap templates
Hugo provides built-in sitemap templates.
Read More »
RSS templates
Use the embedded RSS template, or create your own.
Read More »
Custom 404 page
Create a template to render a 404 error page.
Read More »
robots.txt template
Hugo can generate a customized robots.txt in the same way as any other template.
Read More »
Menus
Create templates to render one or more menus.
Read More »
Pagination
Split a list page into two or more subsets.
Read More »
Embedded templates
Hugo provides embedded templates for common use cases.
Read More »
Custom output formats
Hugo can output content in multiple formats, including calendar events, e-book formats, Google AMP, and JSON search indexes, or any custom text format.
Read More »