Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/render.md')
-rw-r--r--docs/content/en/functions/render.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/content/en/functions/render.md b/docs/content/en/functions/render.md
new file mode 100644
index 000000000..e3909bde3
--- /dev/null
+++ b/docs/content/en/functions/render.md
@@ -0,0 +1,33 @@
+---
+title: .Render
+description: Takes a view to apply when rendering content.
+godocref:
+date: 2017-02-01
+publishdate: 2017-02-01
+lastmod: 2017-02-01
+categories: [functions]
+menu:
+ docs:
+ parent: "functions"
+keywords: [views]
+signature: [".Render LAYOUT"]
+workson: []
+hugoversion:
+relatedfuncs: []
+deprecated: false
+aliases: []
+---
+
+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](/templates/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 }}
+```
+
+[list context]: /templates/lists/