diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md index ba9e54ba452..6240ddb835e 100644 --- a/docs/content/templates/functions.md +++ b/docs/content/templates/functions.md @@ -404,6 +404,22 @@ Looks up a content page by relative path or logical name to return the permalink e.g. {{ ref . "about.md" }} + +## Content Views + +### Render +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](/templates/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 }} + + + ## Advanced ### apply