2013-08-17 08:34:25 -04:00
|
|
|
---
|
|
|
|
title: "Templates"
|
|
|
|
date: "2013-07-01"
|
|
|
|
aliases: ["/doc/templates/"]
|
|
|
|
---
|
|
|
|
|
2013-09-29 22:37:29 -04:00
|
|
|
Hugo uses the excellent golang html/template library for its template engine.
|
2013-08-17 08:34:25 -04:00
|
|
|
It is an extremely lightweight engine that provides a very small amount of
|
|
|
|
logic. In our experience that it is just the right amount of logic to be able
|
|
|
|
to create a good static website
|
|
|
|
|
|
|
|
If you are new to go's templates the [go template primer](/layout/go-templates)
|
|
|
|
is a great place to start.
|
|
|
|
|
|
|
|
## Template roles
|
|
|
|
|
|
|
|
There are 6 different kinds of templates that Hugo works with.
|
|
|
|
|
|
|
|
### [Homepage](/layout/homepage/)
|
|
|
|
The homepage of your site.
|
|
|
|
|
|
|
|
### [RSS](/layout/rss/)
|
|
|
|
Used to render all rss documents.
|
|
|
|
|
2013-10-07 00:57:45 -04:00
|
|
|
### [Index](/layout/indexes)
|
2013-08-17 08:34:25 -04:00
|
|
|
Page that list multiple pieces of content.
|
|
|
|
|
|
|
|
### [Content](/layout/content)
|
|
|
|
Templates to render a single piece of content.
|
|
|
|
|
|
|
|
### [Views](/layout/views)
|
|
|
|
Different ways of rendering each content type
|
|
|
|
|
|
|
|
### [Chrome](/layout/chrome)
|
|
|
|
Simply the decoration of your site.
|