mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-02 02:59:37 -05:00
717 B
717 B
title | description | categories | menu | keywords | signature | relatedfuncs | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
.Render | Takes a view to apply when rendering content. |
|
|
|
|
The view is an alternative 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 when applied to a single piece of content within a list context.
This example could render a piece of content using the content view located at /layouts/_default/summary.html
:
{{ range .Pages }}
{{ .Render "summary" }}
{{ end }}