mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-28 22:42:13 -05:00
1.5 KiB
1.5 KiB
title | description | categories | keywords | menu | weight | toc | aliases | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Single templates | Create a single template to render a single page. |
|
|
70 | true |
|
The single template below inherits the site's shell from the base template.
{{< code file=layouts/_default/single.html >}} {{ define "main" }}
{{ .Title }}
{{ .Content }} {{ end }} {{< /code >}}Review the template lookup order to select a template path that provides the desired level of specificity.
The single template below inherits the site's shell from the base template, and renders the page title, creation date, content, and a list of associated terms in the "tags" taxonomy.
{{< code file=layouts/_default/single.html >}} {{ define "main" }}