mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-10-04 05:51:38 -04:00
751 B
751 B
| title | linktitle | description | godocref | date | publishdate | lastmod | tags | categories | toc | signature | workson | hugoversion | relatedfuncs | deprecated | draft | aliases | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| render | Render | 2017-02-01 | 2017-02-01 | 2017-02-01 |
|
|
false | false |
Takes a view to render the content with. The view is an alternate layout, and should be a file name that points to a template in one of the locations specified in the documentation for Content Views.
This function is only available on a piece of content, and in list context.
This example could render a piece of content using the content view located at /layouts/_default/summary.html:
{{ range .Data.Pages }}
{{ .Render "summary"}}
{{ end }}