Introduction
Create templates to render your content, resources, and data.
Template types
Create templates of different types to render your content, resources, and data.
Lookup order
Hugo uses the rules below to select a template for a given page, starting from the most specific.
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).
Home page 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.
Single templates
Create a single template to render a single page.
Section templates
Create a section template to list its members.
Taxonomy templates
Create a taxonomy template to render a list of terms.
Term templates
Create a term template to render a list of pages associated with the current term.
Partial templates
Partials are smaller, context-aware components in your list and page templates that can be used economically to keep your templating DRY.
Content view templates
Hugo can render alternative views of your content, useful in list and summary views.
Shortcode templates
Create custom shortcodes to simplify and standardize content creation.
Sitemap templates
Hugo provides built-in sitemap templates.
RSS templates
Use the embedded RSS template, or create your own.
404 templates
Create a template to render a 404 error page.
robots.txt templates
Hugo can generate a customized robots.txt in the same way as any other template.
Menus
Create templates to render one or more menus.
Pagination
Split a list page into two or more subsets.
Embedded templates
Hugo provides embedded templates for common use cases.
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.