github.com/lyeb/hugo@v0.47.1/docs/content/en/functions/render.md (about)

     1  ---
     2  title: render
     3  # linktitle: Render
     4  description: Takes a view to apply when rendering content.
     5  godocref:
     6  date: 2017-02-01
     7  publishdate: 2017-02-01
     8  lastmod: 2017-02-01
     9  categories: [functions]
    10  menu:
    11    docs:
    12      parent: "functions"
    13  keywords: [views]
    14  signature: ["render LAYOUT"]
    15  workson: []
    16  hugoversion:
    17  relatedfuncs: []
    18  deprecated: false
    19  aliases: []
    20  ---
    21  
    22  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).
    23  
    24  This function is only available when applied to a single piece of content within a [list context][].
    25  
    26  This example could render a piece of content using the content view located at `/layouts/_default/summary.html`:
    27  
    28  ```
    29  {{ range .Pages }}
    30      {{ .Render "summary"}}
    31  {{ end }}
    32  ```
    33  
    34  [list context]: /templates/lists/