Files
hugo/content/functions/render.md
T
Bud Parr 7fd64f19c8 Merge bp/theme-design branch containing Bud Parr's new design
It's a beautiful thing. A thousand thanks, Bud.

See PR rdwatters/hugo-docs-concept#118
2017-05-26 14:25:22 -05:00

916 B

title, description, godocref, date, publishdate, lastmod, categories, menu, tags, ns, signature, workson, hugoversion, relatedfuncs, deprecated, aliases
title description godocref date publishdate lastmod categories menu tags ns signature workson hugoversion relatedfuncs deprecated aliases
render Takes a view to apply when rendering content. 2017-02-01 2017-02-01 2017-02-01
functions
docs
parent
functions
views
render LAYOUT
false

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 .Data.Pages }}
    {{ .Render "summary"}}
{{ end }}