Files
hugo/content/functions/render.md
T
2017-02-25 21:40:13 -06:00

751 B

title, linktitle, description, godocref, date, publishdate, lastmod, tags, categories, toc, signature, workson, hugoversion, relatedfuncs, deprecated, draft, aliases
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
views
functions
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 }}